mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Remove some temporary debugging stuff
This commit is contained in:
parent
18bbda84b9
commit
cb4b4f6be6
|
@ -170,20 +170,12 @@ class Resource(RequestMixin, ResponseMixin, AuthMixin, View):
|
|||
except ErrorResponse, exc:
|
||||
response = exc.response
|
||||
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
# 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.
|
||||
try:
|
||||
response.headers['Allow'] = ', '.join(self.allowed_methods)
|
||||
response.headers['Vary'] = 'Authenticate, Accept'
|
||||
|
||||
return self.emit(response)
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user