We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from cloudevents.sdk.converters.binary import NewBinaryHTTPCloudEventConverter cnvtr = NewBinaryHTTPCloudEventConverter() assert not cnvtr.can_read({"ce-specversion": "1.0"})
cnvtr.can_read({"ce-specversion": "1.0"})
will return true because it only checks for ce-specversion and not other required versions.
The text was updated successfully, but these errors were encountered:
Not sure I'm following: What's the difference between including the parameter and not?
Sorry, something went wrong.
Checking just one ce- header is fine in practice.
ce-
Checking:
req.header('ce-type') && req.header('ce-specversion') && req.header('ce-source') && req.header('ce-id')
for the require CE headers for binary encoding would be more robust and is what Node does.
No branches or pull requests
Expected Behavior
Actual Behavior
will return true because it only checks for ce-specversion and not other required versions.
The text was updated successfully, but these errors were encountered: