diff options
| author | tom christie tom@tomchristie.com | 2011-03-03 08:02:32 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-03-03 08:02:32 +0000 |
| commit | 09a8b9627a8e4686801d08c6d411228e189cc051 (patch) | |
| tree | 2b8f7f4609bd49866ebefad310f4a31f02faa20c /djangorestframework/resource.py | |
| parent | 0798cc141f5c8ed4e81a3ff95f9353c5ac524e8a (diff) | |
| download | django-rest-framework-09a8b9627a8e4686801d08c6d411228e189cc051.tar.bz2 | |
Fix broken Vary header
Diffstat (limited to 'djangorestframework/resource.py')
| -rw-r--r-- | djangorestframework/resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/resource.py b/djangorestframework/resource.py index 9c3a03c3..15c1d7c8 100644 --- a/djangorestframework/resource.py +++ b/djangorestframework/resource.py @@ -197,7 +197,7 @@ class Resource(EmitterMixin, ParserMixin, AuthenticatorMixin, FormValidatorMixin # Always add these headers response.headers['Allow'] = ', '.join(self.allowed_methods) - response.headers['Vary'] = 'Authenticate, Allow' + response.headers['Vary'] = 'Authenticate, Accept' return self.emit(response) |
