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.send(encodeSSE(body));
575
+ res.write(encodeSSE(body));
576
+ res.end();
576
577
  }
577
578
  else {
578
579
  res.status(status).send(body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-functions",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "Firebase SDK for Cloud Functions",
5
5
  "keywords": [
6
6
  "firebase",