diff options
| author | Tom Christie | 2011-06-25 16:13:58 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-06-25 16:13:58 +0100 |
| commit | 14586916e2156de4ebf4c5ed251e96eb2f772ad9 (patch) | |
| tree | 6b680ae080e98a46664b47e876eac3889abf49f7 /djangorestframework/response.py | |
| parent | d2b5ea107ef05e4f80af337e7df5312050c0e0cd (diff) | |
| download | django-rest-framework-14586916e2156de4ebf4c5ed251e96eb2f772ad9.tar.bz2 | |
Urg. Fixed bug in assigning headers
Diffstat (limited to 'djangorestframework/response.py')
| -rw-r--r-- | djangorestframework/response.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/response.py b/djangorestframework/response.py index d68ececf..311e0bb7 100644 --- a/djangorestframework/response.py +++ b/djangorestframework/response.py @@ -16,13 +16,13 @@ class Response(object): 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.media_type = None self.has_content_body = content is not None self.raw_content = content # content prior to filtering self.cleaned_content = content # content after filtering - self.headers = headers + self.headers = headers or {} @property def status_text(self): |
