aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/response.py
diff options
context:
space:
mode:
authormarkotibold2011-06-25 17:31:04 +0200
committermarkotibold2011-06-25 17:31:04 +0200
commit209ee829031ff69ddfe275ee0e41c173f5dec2f4 (patch)
treefc347393d7567217cef459fbf863c2ad6962d414 /djangorestframework/response.py
parentbae21b14c93e458014107a007e894e93a181bd0e (diff)
parentd3024ff18150e41190da76592d948b724727ca74 (diff)
downloaddjango-rest-framework-209ee829031ff69ddfe275ee0e41c173f5dec2f4.tar.bz2
Merge with 4b1ee62051cce8fa9b83ac740d7262ad4a55494b
Diffstat (limited to 'djangorestframework/response.py')
-rw-r--r--djangorestframework/response.py4
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):