From 05ae3eee3fae4005ae4cfb0bb22d281725fabade Mon Sep 17 00:00:00 2001 From: Hao Guan Date: Sat, 19 Oct 2024 03:05:59 +0800 Subject: [PATCH] Clarify `raw_path` of WebSocket also excludes query string (#474) Discussed in #468, `raw_path` of WebSocket is updated for clarification. --- specs/www.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/www.rst b/specs/www.rst index dcec9192..3417b28e 100644 --- a/specs/www.rst +++ b/specs/www.rst @@ -315,10 +315,10 @@ metadata (mostly from the HTTP request line and headers): string, with percent-encoded sequences and UTF-8 byte sequences decoded into characters. -* ``raw_path`` (*byte string*) -- The original HTTP path component - unmodified from the bytes that were received by the web server. Some - web server implementations may be unable to provide this. Optional; - if missing defaults to ``None``. +* ``raw_path`` (*byte string*) -- The original HTTP path component, + excluding any query string, unmodified from the bytes that were + received by the web server. Some web server implementations may + be unable to provide this. Optional; if missing defaults to ``None``. * ``query_string`` (*byte string*) -- URL portion after the ``?``. Optional; if missing or ``None`` default is empty string.