File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ def check_headers(headers):
390
390
assert_ (type (headers ) is list ,
391
391
"Headers (%r) must be of type list: %r"
392
392
% (headers , type (headers )))
393
- header_names = {}
394
393
for item in headers :
395
394
assert_ (type (item ) is tuple ,
396
395
"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
403
"script, and HTTP status is not given through headers "
405
404
"(value: %r)." % value )
406
- header_names [name .lower ()] = None
407
405
assert_ ('\n ' not in name and ':' not in name ,
408
406
"Header names may not contain ':' or '\\ n': %r" % name )
409
407
assert_ (header_re .search (name ), "Bad header name: %r" % name )
You can’t perform that action at this time.
0 commit comments