Skip to content

Commit

Permalink
fix: Binary emitter should add a basic application/json header.
Browse files Browse the repository at this point in the history
  • Loading branch information
lholmquist committed Aug 5, 2020
1 parent e8c890d commit 54bdd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/http/binary_emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function emitBinary(event: CloudEvent, options: TransportOptions):
}

async function emit(event: CloudEvent, options: TransportOptions, headers: Headers): Promise<AxiosResponse> {
const contentType: Headers = { [CONSTANTS.HEADER_CONTENT_TYPE]: CONSTANTS.DEFAULT_CE_CONTENT_TYPE };
const contentType: Headers = { [CONSTANTS.HEADER_CONTENT_TYPE]: CONSTANTS.DEFAULT_CONTENT_TYPE };
const config = {
...options,
method: "POST",
Expand Down

0 comments on commit 54bdd56

Please sign in to comment.