Skip to content

Commit 51c67e3

Browse files
committed
fix: Binary emitter should add a basic application/json header.
fixes #301 Signed-off-by: Lucas Holmquist <[email protected]>
1 parent e8c890d commit 51c67e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transport/http/binary_emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function emitBinary(event: CloudEvent, options: TransportOptions):
2020
}
2121

2222
async function emit(event: CloudEvent, options: TransportOptions, headers: Headers): Promise<AxiosResponse> {
23-
const contentType: Headers = { [CONSTANTS.HEADER_CONTENT_TYPE]: CONSTANTS.DEFAULT_CE_CONTENT_TYPE };
23+
const contentType: Headers = { [CONSTANTS.HEADER_CONTENT_TYPE]: CONSTANTS.DEFAULT_CONTENT_TYPE };
2424
const config = {
2525
...options,
2626
method: "POST",

0 commit comments

Comments
 (0)