aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorTom Christie2014-09-11 20:43:44 +0100
committerTom Christie2014-09-11 20:43:44 +0100
commit19b8f779de82fa4737b37fb4359145af0b07a56c (patch)
tree09e3d8201501db7af2a01d30e476979a59bac4aa /rest_framework/views.py
parentbf52d04f4c370d6917599d26c84b73124d5ef366 (diff)
downloaddjango-rest-framework-19b8f779de82fa4737b37fb4359145af0b07a56c.tar.bz2
Throttles now use Retry-After header and no longer support the custom style
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index 3b7b1c16..cd394b2d 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -62,7 +62,6 @@ def exception_handler(exc):
if getattr(exc, 'auth_header', None):
headers['WWW-Authenticate'] = exc.auth_header
if getattr(exc, 'wait', None):
- headers['X-Throttle-Wait-Seconds'] = '%d' % exc.wait
headers['Retry-After'] = '%d' % exc.wait
return Response({'detail': exc.detail},