Open raptium opened 1 week ago
Yeah, having this difference looks a bit weird. Do you remember if it was intentional? @andrewgodwin
I do not believe that was intentional - my guess is that we specifically clarified it for standard HTTP but not for WebSocket. I would say we should update the WebSocket side to say that it also excludes the query string.
The definition of
raw_path
in the ASGI specification differs slightly between HTTP and WebSockets protocols.raw_path
.https://github.com/django/asgiref/blob/b7aaa795fbbea7ca88458279cf8302533d249101/specs/www.rst?#L107-L110
raw_path
.https://github.com/django/asgiref/blob/b7aaa795fbbea7ca88458279cf8302533d249101/specs/www.rst?#L318-L321
To ensure clarity and consistency, it would be beneficial to explicitly define the behavior of
raw_path
for WebSockets:Given the potential for confusion, it would be helpful to clarify this in the specification.