]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove the conditional for setting query. (#23604)
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 3 Dec 2020 03:48:14 +0000 (19:48 -0800)
committerGitHub <noreply@github.com>
Thu, 3 Dec 2020 03:48:14 +0000 (19:48 -0800)
Lib/http/server.py

index ee991821099135ae50762a35e24fd182240ebd0b..c611381177d43a7bd924896df6281303d0c99411 100644 (file)
@@ -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: