summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r--paste/httpexceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py
index 837fd66..cd08909 100644
--- a/paste/httpexceptions.py
+++ b/paste/httpexceptions.py
@@ -157,7 +157,7 @@ class HTTPException(Exception):
assert isinstance(comment, (type(None), basestring))
self.headers = headers or tuple()
for req in self.required_headers:
- assert has_header(headers, req)
+ assert headers and has_header(headers, req)
if detail is not None:
self.detail = detail
if comment is not None: