The parser for HTTP binary made the assumption that if there was no `content-type` header in the incoming message, it should inject `application/json`. Discussion about the rationale for this is in https://github.com/cloudevents/sdk-javascript/issues/441. This commit, removes that injection and adds a test to ensure the bytes are simply not parsed, but just passed along untouched. Fixes: https://github.com/cloudevents/sdk-javascript/issues/441 Signed-off-by: Lance Ball <lball@redhat.com> |
||
---|---|---|
.. | ||
ce.png | ||
cloud_event_test.ts | ||
constants_test.ts | ||
emitter_factory_test.ts | ||
emitter_singleton_test.ts | ||
message_test.ts | ||
parser_test.ts | ||
sdk_test.ts | ||
spec_1_tests.ts | ||
utilities_test.ts |