diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2020-12-03 03:48:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 03:48:14 (GMT) |
commit | 3ec9d019013a9e9125d4f8669be177b9154cb45b (patch) | |
tree | f5e601bb7b116ed6449f4bec2a22401dda045661 /Lib/http | |
parent | 5291639e611dc3f55a34666036f2c3424648ba50 (diff) | |
download | cpython-3ec9d019013a9e9125d4f8669be177b9154cb45b.zip cpython-3ec9d019013a9e9125d4f8669be177b9154cb45b.tar.gz cpython-3ec9d019013a9e9125d4f8669be177b9154cb45b.tar.bz2 |
Remove the conditional for setting query. (#23604)
Diffstat (limited to 'Lib/http')
-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 ee99182..c611381 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: |