Skip to content
New issue

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

fix: throw "no cloud event detected" if one can't be read #139

Merged
merged 1 commit into from
May 11, 2020

Conversation

lance
Copy link
Member

@lance lance commented May 8, 2020

This commit changes the event mode detection in HTTPReceiver so that it will
throw a TypeError if the event mode can't be detected per the spec.

Fixes: #136

Signed-off-by: Lance Ball lball@redhat.com

@lance lance added the type/enhancement New feature or request label May 8, 2020
@lance lance self-assigned this May 8, 2020
Copy link
Contributor

@helio-frota helio-frota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have the simplified constants usage as done in this PR: #134
You mind to update the PR with that addition?

@lance
Copy link
Member Author

lance commented May 8, 2020

@helio-frota Good catch. I can do it now, or wait until #134 lands and update this PR from master (which is what I was planning to do).

This commit changes the event mode detection in `HTTPReceiver` so that it will
throw a TypeError if the event mode can't be detected per the spec.

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance force-pushed the 136-fix-receiver-event-sniffing branch from e653ca5 to 7462d08 Compare May 9, 2020 03:53
@lance
Copy link
Member Author

lance commented May 9, 2020

@helio-frota updated with simplified constants usage

Copy link
Contributor

@fabiojose fabiojose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lance lance merged commit ef7550d into cloudevents:master May 11, 2020
@lance lance deleted the 136-fix-receiver-event-sniffing branch May 11, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure HTTPReceiver is sniffing events according to the specification
3 participants