Commit ba4a750b authored by Vincent Pelletier's avatar Vincent Pelletier

wsgi: Make it easier to customise response headers in subclasses.

parent 72920cbe
...@@ -36,9 +36,11 @@ class ApplicationError(Exception): ...@@ -36,9 +36,11 @@ class ApplicationError(Exception):
WSGI HTTP error base class. WSGI HTTP error base class.
""" """
status = _getStatus(httplib.INTERNAL_SERVER_ERROR) status = _getStatus(httplib.INTERNAL_SERVER_ERROR)
_response_headers = []
@property @property
def response_headers(self): def response_headers(self):
return [] return self._response_headers[:]
class BadRequest(ApplicationError): class BadRequest(ApplicationError):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment