Skip to content

Commit 3ec9d01

Browse files
authored
Remove the conditional for setting query. (#23604)
1 parent 5291639 commit 3ec9d01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/http/server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,7 @@ def run_cgi(self):
10921092
env['PATH_INFO'] = uqrest
10931093
env['PATH_TRANSLATED'] = self.translate_path(uqrest)
10941094
env['SCRIPT_NAME'] = scriptname
1095-
if query:
1096-
env['QUERY_STRING'] = query
1095+
env['QUERY_STRING'] = query
10971096
env['REMOTE_ADDR'] = self.client_address[0]
10981097
authorization = self.headers.get("authorization")
10991098
if authorization:

0 commit comments

Comments
 (0)