sdk-javascript/test/integration
Lance Ball 52ea7de80d
fix: do not assume an empty content-type header is JSON (#444)
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>
2021-11-24 11:02:50 -05:00
..
ce.png fix: do not alter an event's data attribute (#344) 2020-10-06 08:20:54 -04:00
cloud_event_test.ts feat: add native logging with headers and body to CloudEvent (#437) 2021-10-04 11:11:38 -07:00
constants_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00
emitter_factory_test.ts chore: update eslint and prettier dependencies (#424) 2021-08-04 15:51:37 -04:00
emitter_singleton_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00
message_test.ts fix: do not assume an empty content-type header is JSON (#444) 2021-11-24 11:02:50 -05:00
parser_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00
sdk_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00
spec_1_tests.ts chore: update eslint and prettier dependencies (#424) 2021-08-04 15:51:37 -04:00
utilities_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00