Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1122575 commit f0f62ccCopy full SHA for f0f62cc
1 file changed
Lib/wsgiref/validate.py
@@ -390,7 +390,6 @@ def check_headers(headers):
390
assert_(type(headers) is list,
391
"Headers (%r) must be of type list: %r"
392
% (headers, type(headers)))
393
- header_names = {}
394
for item in headers:
395
assert_(type(item) is tuple,
396
"Individual headers (%r) must be of type tuple: %r"
@@ -403,7 +402,6 @@ def check_headers(headers):
403
402
"The Status header cannot be used; it conflicts with CGI "
404
"script, and HTTP status is not given through headers "
405
"(value: %r)." % value)
406
- header_names[name.lower()] = None
407
assert_('\n' not in name and ':' not in name,
408
"Header names may not contain ':' or '\\n': %r" % name)
409
assert_(header_re.search(name), "Bad header name: %r" % name)
0 commit comments