Created
November 4, 2010 21:21
-
-
Save dvogel/663215 to your computer and use it in GitHub Desktop.
Tornado web.py diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175c175 | |
< def clear(self): | |
--- | |
> def clear(self, extra_headers=None): | |
180a181,182 | |
> if extra_headers: | |
> self._headers.update(extra_headers) | |
578c580 | |
< def send_error(self, status_code=500, **kwargs): | |
--- | |
> def send_error(self, status_code=500, extra_headers=None, **kwargs): | |
590c592 | |
< self.clear() | |
--- | |
> self.clear(extra_headers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment