Skip to content

Commit 34cc3d5

Browse files
committed
Added asPdf content type
1 parent 4f1b4cc commit 34cc3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SaveUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class SaveUrl {
122122
return {
123123
statusCode: 200,
124124
headers: {
125-
"content-type": "image/png"
125+
"content-type": asPdf ? "application/pdf" : "image/png"
126126
},
127127
body,
128128
isBase64Encoded: true

0 commit comments

Comments
 (0)