Skip to content

Commit 0835232

Browse files
committed
until I find the header
1 parent 03ecc00 commit 0835232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/no/nav/klage/document/clients/KabalJsonToPdfClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class KabalJsonToPdfClient(
2525
.map {
2626
val filename = it.headers["filename"]?.first()
2727
PDFDocument(
28-
filename = filename ?: throw RuntimeException("Could not get filename from headers"),
28+
filename = filename ?: "somefilename",//throw RuntimeException("Could not get filename from headers"),
2929
bytes = it.body ?: throw RuntimeException("Could not get PDF data")
3030
)
3131
}

0 commit comments

Comments
 (0)