Skip to content

Commit db12d86

Browse files
Use more strict name=True for status because it shouldn't IMO include HTAB at all
1 parent 379937e commit db12d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/wsgiref/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def start_response(self, status, headers,exc_info=None):
240240

241241
self.status = status
242242
self.headers = self.headers_class(headers)
243-
status = self._convert_string_type(status, "Status", name=False)
243+
status = self._convert_string_type(status, "Status", name=True)
244244
self._validate_status(status)
245245

246246
if __debug__:

0 commit comments

Comments
 (0)