aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index bca0aaef..23df3443 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -62,6 +62,7 @@ def exception_handler(exc):
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},
status=exc.status_code,