Skip to content

Commit

Permalink
Allow v1 to return streaming response.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Oct 25, 2024
1 parent 726557d commit af2688c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/providers/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ function wrapOnCallHandler<Req = any, Res = any>(
context.instanceIdToken = req.header("Firebase-Instance-ID-Token");
}

const acceptsStreaming = version === "v2" && req.header("accept") === "text/event-stream";
const acceptsStreaming = req.header("accept") === "text/event-stream";
const data: Req = decode(req.body.data);
let result: Res;
if (version === "v1") {
Expand Down

0 comments on commit af2688c

Please sign in to comment.