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

Stop stripping \xa0 and \x85 from the beginning and end of header values #433

Closed
wants to merge 1 commit into from

Conversation

kenballus
Copy link
Contributor

Previously, Waitress stripped \xa0 and \x85 from the sides of header values before inserting them into the environ dict. Since those bytes are allowed within header values, this could potentially cause data corruption. This patch removes the offending call to str.strip.

@kenballus
Copy link
Contributor Author

Addresses #432

@digitalresistor
Copy link
Member

We don't need the .strip() here, the values in the header are already normalized. Stripping here is redundant. I fixed this in #434

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.

None yet

2 participants