summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref/headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/wsgiref/headers.py')
-rw-r--r--Lib/wsgiref/headers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/headers.py b/Lib/wsgiref/headers.py
index d939628..7931bc7 100644
--- a/Lib/wsgiref/headers.py
+++ b/Lib/wsgiref/headers.py
@@ -26,10 +26,10 @@ def _formatparam(param, value=None, quote=1):
class Headers:
-
"""Manage a collection of HTTP response headers"""
- def __init__(self,headers):
+ def __init__(self, headers=None):
+ headers = headers if headers is not None else []
if type(headers) is not list:
raise TypeError("Headers must be a list of name/value tuples")
self._headers = headers