allow removal of headers with response.headers[key]=None
This commit is contained in:
@@ -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