Remove some temporary debugging stuff

This commit is contained in:
Tom Christie 2011-04-11 17:18:03 +01:00
parent 18bbda84b9
commit cb4b4f6be6

View File

@ -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()