-
Notifications
You must be signed in to change notification settings - Fork 69
emitter.send() drops datacontenttype header #240
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
For binary mode, the For structured mode, the received payload should have the Thanks for reporting this. |
I have been testing the binary mode transmission, and realized that you need to use |
@c-pius the module is working as expected for both binary and structured events. In both cases, the property on the |
ah okay, sorry for the confusion. Will this change with the new release however? I was looking at the examples and that is actually where I got the all lowercase
|
@c-pius yes - the examples are previewing what will be coming in 3.0.0. You can track the release of that in this issue. We made this change to simplify marshaling/unmarshaling of |
Not entirely sure on this but I think emitter.send() drops the datacontenttype header.
structured
received
content-type
header : "application/cloudevents+json"received payload:
binary
received
content-type
header = "application/json"I assume the
datacontenttype
is dropped (not allowed in binary binding). But then the missing value is defaulted to application/json for thecontent-type
header (seems correct from the spec). However, thecontent-type
header should be set to "text/xml" from the givendatacontenttype
value.The text was updated successfully, but these errors were encountered: