allow removal of headers with response.headers[key]=None

This commit is contained in:
mdipierro
2012-09-11 12:59:45 -05:00
parent 87a1a861b8
commit 49c82bcd65
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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':