allow removal of headers with response.headers[key]=None
This commit is contained in:
1 parent
87a1a861b8
commit
49c82bcd65
2 files changed
+2
-2
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.0.8 (2012-09-11 12:53:40) stable
|
||||
Version 2.0.8 (2012-09-11 12:59:42) stable
|
||||
+1
-1
@@ -103,7 +103,7 @@ class HTTP(BaseException):
|
||||
for k, v in headers.iteritems():
|
||||
if isinstance(v, list):
|
||||
rheaders += [(k, str(item)) for item in v]
|
||||
else:
|
||||
elif not v is None:
|
||||
rheaders.append((k, str(v)))
|
||||
responder(status, rheaders)
|
||||
if env.get('request_method','')=='HEAD':
|
||||
|
||||
Reference in new issue
Block a user