8000 Fix issue where content-type headers were not sent to event functions… · firebase/firebase-tools@eb5c922 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb5c922

Browse files
authored
Fix issue where content-type headers were not sent to event functions. (#8019)
* Fix issue where content-type headers were not sent to event functions. * Add changelog.
1 parent 0a7808d commit eb5c922

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
- Added default value for `emulators.dataconnect.dataDir` to `init dataconnect`.
22
- Fixed an issue where `firebase` would error out instead of displaying help text.
3+
- Fixed an issue where emulator returned error when emulating alerts functions written in python (#8019)

src/emulator/eventarcEmulator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export class EventarcEmulator implements EmulatorInstance {
189189
.request<CloudEvent<any>, NodeJS.ReadableStream>({
190190
method: "POST",
191191
path: `/functions/projects/${trigger.projectId}/triggers/${trigger.triggerName}`,
192+
headers: { "Content-Type": "application/json" },
192193
body: JSON.stringify(event),
193194
responseType: "stream",
194195
resolveOnHTTPError: true,

0 commit comments

Comments
 (0)
0