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 header parsing, allowing for \t characters between VCHAR. #44

Merged

Conversation

samuel-williams-shopify
Copy link
Contributor

@samuel-williams-shopify samuel-williams-shopify commented Mar 18, 2025

We identified a specific header format which included tab characters, which was rejected by the existing header parser. This change aligns the header FIELD_VALUE to more closely align with https://www.rfc-editor.org/rfc/rfc7230.html#section-3.2.

This also prevents headers with non-printable ASCII characters (decimal value 127+), as per the above RFC. This might be considered a breaking change as previously these values were allowed.

Types of Changes

  • Bug fix.
  • Breaking change.

Contribution

Copy link

@macournoyer macournoyer left a comment

Choose a reason for hiding this comment

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

🙌

@ioquatix ioquatix merged commit 8dee49e into socketry:main Mar 19, 2025
22 of 24 checks passed
@ioquatix ioquatix added this to the v0.32.0 milestone Mar 20, 2025
@samuel-williams-shopify samuel-williams-shopify deleted the user-agent-header-parsing branch March 20, 2025 01:19
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.

3 participants