Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 098537a

Browse files
authored
Merge pull request #74 from soulofmischief/patch-1
Directly pass through event streams
2 parents 1122954 + fbdc8ad commit 098537a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FunctionsClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ export class FunctionsClient {
115115
data = await response.json()
116116
} else if (responseType === 'application/octet-stream') {
117117
data = await response.blob()
118+
} else if (responseType === 'text/event-stream') {
119+
data = response
118120
} else if (responseType === 'multipart/form-data') {
119121
data = await response.formData()
120122
} else {

0 commit comments

Comments
 (0)