mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-27 13:24:26 +03:00
Fix broken Vary header
This commit is contained in:
parent
0798cc141f
commit
09a8b9627a
|
@ -197,7 +197,7 @@ class Resource(EmitterMixin, ParserMixin, AuthenticatorMixin, FormValidatorMixin
|
||||||
|
|
||||||
# Always add these headers
|
# Always add these headers
|
||||||
response.headers['Allow'] = ', '.join(self.allowed_methods)
|
response.headers['Allow'] = ', '.join(self.allowed_methods)
|
||||||
response.headers['Vary'] = 'Authenticate, Allow'
|
response.headers['Vary'] = 'Authenticate, Accept'
|
||||||
|
|
||||||
return self.emit(response)
|
return self.emit(response)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user