You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SHOULD throw if ce-datacontenttype is present in binary mode? #381
Describe the Bug Spec states that the ce-datacontenttype header MUST NOT be present in a binary mode message. If it is passed anyway, no error is thrown and the given ce-datacontenttype is treated as extension attribute overwriting the value from the Content-Type header.
I don't think it should, to be honest. This is similar to other scenarios that have been pointed out with regard to receiving malformed events. The HTTP.toEvent() function is meant to be used when receiving events via incoming HTTP requests, and we should be as forgiving as possible. To me the debate is really, what should the datacontenttype value be in this scenario, text/xml or application/json?
Thanks for pointing out those two bugs. You're right that they are incorrect.
Activity
lance commentedon Mar 5, 2021
I don't think it should, to be honest. This is similar to other scenarios that have been pointed out with regard to receiving malformed events. The
HTTP.toEvent()function is meant to be used when receiving events via incoming HTTP requests, and we should be as forgiving as possible. To me the debate is really, what should thedatacontenttypevalue be in this scenario,text/xmlorapplication/json?Thanks for pointing out those two bugs. You're right that they are incorrect.
github-actions commentedon Apr 5, 2021
This issue is stale because it has been open 30 days with no activity.