From d225a373018e36c339fa7144dbaadf96b265575c Mon Sep 17 00:00:00 2001 From: Hao Guan Date: Fri, 4 Oct 2024 09:26:34 +0800 Subject: [PATCH] Clarify `raw_path` of WebSocket also excludes query string 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.