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
fixes cloudevents#301

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
  • Loading branch information
lholmquist committed Aug 5, 2020
1 parent e8c890d commit 51c67e3
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 51c67e3

Please sign in to comment.