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

[PR #7716/5a499d04 backport][3.9] Fix unhandled exception for invalid Unicode in Python HTTP parser #7720

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Oct 17, 2023

This is a backport of PR #7716 as merged into master (5a499d0).

What do these changes do?

Fixes an unhandled exception in the Python HTTP parser that causes servers to 500 when they should 400 upon receiving a header with an invalid Unicode sequence.

Are there changes in behavior for the user?

Nope.

Related issue number

Fixes #7715

)

## What do these changes do?

Fixes an unhandled exception in the Python HTTP parser that causes
servers to 500 when they should 400 upon receiving a header with an
invalid Unicode sequence.

## Are there changes in behavior for the user?

Nope.

## Related issue number

Fixes #7715

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 5a499d0)
@patchback patchback bot requested a review from asvetlov as a code owner October 17, 2023 18:31
@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) October 17, 2023 18:48
@Dreamsorcerer Dreamsorcerer merged commit 843a5d9 into 3.9 Oct 17, 2023
23 of 28 checks passed
@Dreamsorcerer Dreamsorcerer deleted the patchback/backports/3.9/5a499d040654455eb03909ef6ab66a454316e317/pr-7716 branch October 17, 2023 19:17
xiangxli pushed a commit to xiangxli/aiohttp that referenced this pull request Dec 4, 2023
… invalid Unicode in Python HTTP parser (aio-libs#7720)

**This is a backport of PR aio-libs#7716 as merged into master
(5a499d0).**

## What do these changes do?

Fixes an unhandled exception in the Python HTTP parser that causes
servers to 500 when they should 400 upon receiving a header with an
invalid Unicode sequence.

## Are there changes in behavior for the user?

Nope.

## Related issue number

Fixes aio-libs#7715

Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
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