mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Remove some temporary debugging stuff
This commit is contained in:
parent
18bbda84b9
commit
cb4b4f6be6
|
@ -169,21 +169,13 @@ 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'
|
||||
response.headers['Allow'] = ', '.join(self.allowed_methods)
|
||||
response.headers['Vary'] = 'Authenticate, Accept'
|
||||
|
||||
return self.emit(response)
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
return self.emit(response)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user