diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2020-12-02 19:48:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 19:48:14 -0800 |
commit | 3ec9d019013a9e9125d4f8669be177b9154cb45b (patch) | |
tree | f5e601bb7b116ed6449f4bec2a22401dda045661 /Lib/http/server.py | |
parent | 5291639e611dc3f55a34666036f2c3424648ba50 (diff) | |
download | cpython-git-3ec9d019013a9e9125d4f8669be177b9154cb45b.tar.gz |
Remove the conditional for setting query. (#23604)
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r-- | Lib/http/server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py index ee99182109..c611381177 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -1092,8 +1092,7 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler): env['PATH_INFO'] = uqrest env['PATH_TRANSLATED'] = self.translate_path(uqrest) env['SCRIPT_NAME'] = scriptname - if query: - env['QUERY_STRING'] = query + env['QUERY_STRING'] = query env['REMOTE_ADDR'] = self.client_address[0] authorization = self.headers.get("authorization") if authorization: |