aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/views.py
diff options
context:
space:
mode:
authorMarko Tibold2011-12-12 09:42:27 -0600
committerMarko Tibold2011-12-12 09:42:27 -0600
commit386743877909f96af17b9ae35ea18a332e5789af (patch)
treea0c32fe861718b995dfd232872f0c9d4af057575 /djangorestframework/views.py
parent51c53a8a5c5141f47f3cefab5d3353250422cab3 (diff)
parentcb8931a014af506c173e9d3b596e2f4aa51600cc (diff)
downloaddjango-rest-framework-386743877909f96af17b9ae35ea18a332e5789af.tar.bz2
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'djangorestframework/views.py')
-rw-r--r--djangorestframework/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/views.py b/djangorestframework/views.py
index 0a359404..4cc2c7cb 100644
--- a/djangorestframework/views.py
+++ b/djangorestframework/views.py
@@ -156,7 +156,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
# Always add these headers.
#
# TODO - this isn't actually the correct way to set the vary header,
- # also it's currently sub-obtimal for HTTP caching - need to sort that out.
+ # also it's currently sub-optimal for HTTP caching - need to sort that out.
response.headers['Allow'] = ', '.join(self.allowed_methods)
response.headers['Vary'] = 'Authenticate, Accept'