Skip to content

Commit

Permalink
Merge pull request #74 from soulofmischief/patch-1
Browse files Browse the repository at this point in the history
Directly pass through event streams
  • Loading branch information
laktek authored Apr 14, 2024
2 parents 1122954 + fbdc8ad commit 098537a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FunctionsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export class FunctionsClient {
data = await response.json()
} else if (responseType === 'application/octet-stream') {
data = await response.blob()
} else if (responseType === 'text/event-stream') {
data = response
} else if (responseType === 'multipart/form-data') {
data = await response.formData()
} else {
Expand Down

0 comments on commit 098537a

Please sign in to comment.