Skip to content

Commit c4554ff

Browse files
fix(functions): add application/pdf response parsing to FunctionsClient (#1757)
Co-authored-by: Staud <[email protected]>
1 parent 4acc802 commit c4554ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/functions-js/src/FunctionsClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ export class FunctionsClient {
123123
let data: any
124124
if (responseType === 'application/json') {
125125
data = await response.json()
126-
} else if (responseType === 'application/octet-stream') {
126+
} else if (
127+
responseType === 'application/octet-stream' ||
128+
responseType === 'application/pdf'
129+
) {
127130
data = await response.blob()
128131
} else if (responseType === 'text/event-stream') {
129132
data = response

0 commit comments

Comments
 (0)