Skip to content

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

Merged
lance merged 1 commit into
cloudevents:masterfrom
lance:136-fix-receiver-event-sniffing
May 11, 2020
Merged

lance merged 1 commit into
cloudevents:masterfrom
lance:136-fix-receiver-event-sniffing

Conversation

@lance

@lance lance commented May 8, 2020

Copy link
Copy Markdown
Member

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 requested review from fabiojose, grant and helio-frota May 8, 2020 20:01
@lance lance self-assigned this May 8, 2020

@helio-frota helio-frota left a comment

Copy link
Copy Markdown
Member

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

lance commented May 8, 2020

Copy link
Copy Markdown
Member Author

@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

lance commented May 9, 2020

Copy link
Copy Markdown
Member Author

@helio-frota updated with simplified constants usage

@fabiojose fabiojose left a comment

Copy link
Copy Markdown
Contributor

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