Skip to content

Conversation

@zarqman
Copy link
Contributor

@zarqman zarqman commented Sep 13, 2023

This PR improves the validation of Websocket requests to:

  • Verify response.protocol (aka Upgrade) for h11
  • Verify Connection for h11

It also adds tests for the existing verification of response.status for both h11 and h2.

This is based on RFC 6455, page 19, items 2 (Upgrade) and 3 (Connection).

Types of Changes

  • Performance improvement.

Contribution

Copy link
Member

@ioquatix ioquatix left a comment

Choose a reason for hiding this comment

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

LGTM.

@ioquatix ioquatix merged commit 6146dd1 into socketry:main Dec 9, 2023
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