Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save photonxp/9910033 to your computer and use it in GitHub Desktop.
Save photonxp/9910033 to your computer and use it in GitHub Desktop.
The following lines could be moved to a separate function from def clear
line 248:
if (not self.request.supports_http_1_1() and
getattr(self.request, 'connection', None) and
not self.request.connection.no_keep_alive):
conn_header = self.request.headers.get("Connection")
if conn_header and (conn_header.lower() == "keep-alive"):
self._headers["Connection"] = "Keep-Alive"
https://github.com/facebook/tornado/blob/master/tornado/web.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment