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

OHttpServerCodec should drop content if no OHttpVersion can be selected. #48

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

normanmaurer
Copy link
Member

Motivation:

When we fail to select a OHttpVersion we correctly respond with a FORBIDDEN. That said we still forwarded the following HttpContents which is not correct.

Modifications:

  • Drop HttpContent when we responded with a FORBIDDEN before.
  • Add unit test

Result:

Correctly drop messages

Motivation:

When we fail to select a OHttpVersion we correctly respond with a FORBIDDEN. That said we still forwarded the following HttpContents which is not correct.

Modifications:

- Drop HttpContent when we responded with a FORBIDDEN before.
- Add unit test

Result:

Correctly drop messages
@normanmaurer normanmaurer requested a review from thomdev February 8, 2024 11:06
@normanmaurer normanmaurer added this to the 0.0.6.Final milestone Feb 8, 2024
Copy link
Collaborator

@thomdev thomdev left a comment

Choose a reason for hiding this comment

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

LGTM

@normanmaurer normanmaurer merged commit d9e4bbb into main Feb 8, 2024
9 checks passed
@normanmaurer normanmaurer deleted the codec_drop_content branch February 8, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants