Created
April 1, 2014 08:21
-
-
Save photonxp/9910033 to your computer and use it in GitHub Desktop.
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
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