Skip to content

Ensure that ASGI 'raw_path' does not include query component of URL. - #2999

Merged
lovelydinosaur merged 5 commits into
masterfrom
fix-asgi-rawpath
Dec 11, 2023
Merged

Ensure that ASGI 'raw_path' does not include query component of URL.#2999
lovelydinosaur merged 5 commits into
masterfrom
fix-asgi-rawpath

Conversation

@lovelydinosaur

@lovelydinosaur lovelydinosaur commented Dec 11, 2023

Copy link
Copy Markdown
Member

Closes #2810.

Update the ASGI transport to ensure that raw_path does not include the query component.

The spec was originally a little ambiguous here, and it might(?) have made sense for it to include the query portion, since that way around it'd be a direct representation of the HTTP/1.1 target byte string that was received on the wire. But the spec's been clarified since, and we're not matching that correctly at the moment. Let's fix that! ☺️

@lovelydinosaur
lovelydinosaur marked this pull request as ready for review December 11, 2023 14:32
@lovelydinosaur
lovelydinosaur merged commit 90538a3 into master Dec 11, 2023
@lovelydinosaur
lovelydinosaur deleted the fix-asgi-rawpath branch December 11, 2023 15:45
@karpetrosyan karpetrosyan mentioned this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants