firebase-functions 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -572,7 +572,8 @@ function wrapOnCallHandler(options, handler, version) {
|
|
|
572
572
|
const { status } = httpErr.httpErrorCode;
|
|
573
573
|
const body = { error: httpErr.toJSON() };
|
|
574
574
|
if (version === "gcfv2" && req.header("accept") === "text/event-stream") {
|
|
575
|
-
res.
|
|
575
|
+
res.write(encodeSSE(body));
|
|
576
|
+
res.end();
|
|
576
577
|
}
|
|
577
578
|
else {
|
|
578
579
|
res.status(status).send(body);
|