We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648b922 commit 426d279Copy full SHA for 426d279
src/common/providers/https.ts
@@ -782,6 +782,13 @@ function wrapOnCallHandler<Req = any, Res = any>(
782
}
783
784
const acceptsStreaming = req.header("accept") === "text/event-stream";
785
+
786
+ if (acceptsStreaming && version === "gcfv1") {
787
+ // streaming responses are not supported in v1 callable
788
+ throw new HttpsError('invalid-argument', "Unsupported Accept header 'text/event-stream'")
789
+ }
790
791
792
const data: Req = decode(req.body.data);
793
let result: Res;
794
if (version === "gcfv1") {
0 commit comments