Skip to content

Commit 76b7444

Browse files
Update handlers.py
1 parent c0e05d0 commit 76b7444

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
@@ -246,7 +246,7 @@ def start_response(self, status, headers,exc_info=None):
246246
status = self._convert_string_type(status, "Status")
247247

248248
regex = (_name_disallowed_re if name else _value_disallowed_re)
249-
if regex.search(value):
249+
if regex.search(status):
250250
raise ValueError("Control characters are not allowed in headers and status")
251251

252252
self._validate_status(status)

0 commit comments

Comments
 (0)