Commit 14586916 by Tom Christie

Urg. Fixed bug in assigning headers

parent d2b5ea10
...@@ -16,13 +16,13 @@ class Response(object): ...@@ -16,13 +16,13 @@ class Response(object):
An HttpResponse that may include content that hasn't yet been serialized. An HttpResponse that may include content that hasn't yet been serialized.
""" """
def __init__(self, status=200, content=None, headers={}): def __init__(self, status=200, content=None, headers=None):
self.status = status self.status = status
self.media_type = None self.media_type = None
self.has_content_body = content is not None self.has_content_body = content is not None
self.raw_content = content # content prior to filtering self.raw_content = content # content prior to filtering
self.cleaned_content = content # content after filtering self.cleaned_content = content # content after filtering
self.headers = headers self.headers = headers or {}
@property @property
def status_text(self): def status_text(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment