Skip to content

Instantly share code, notes, and snippets.

@dvogel
Created November 4, 2010 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvogel/663215 to your computer and use it in GitHub Desktop.
Save dvogel/663215 to your computer and use it in GitHub Desktop.
Tornado web.py diff
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