Skip to content

Commit

Permalink
fix: added application/pdf response parsing to FunctionsClient.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippS93 committed Oct 16, 2023
1 parent 08a976d commit 0f7a3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FunctionsClient.ts
Expand Up @@ -102,7 +102,7 @@ export class FunctionsClient {
let data: any
if (responseType === 'application/json') {
data = await response.json()
} else if (responseType === 'application/octet-stream') {
} else if (responseType === 'application/octet-stream' || responseType === 'application/pdf') {
data = await response.blob()
} else if (responseType === 'multipart/form-data') {
data = await response.formData()
Expand Down

0 comments on commit 0f7a3e7

Please sign in to comment.