Changeset 1956
- Timestamp:
- 04/27/08 20:05:55
- Files:
-
- trunk/cherrypy/wsgiserver/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/wsgiserver/__init__.py
r1950 r1956 407 407 # Persistent connection support 408 408 if self.response_protocol == "HTTP/1.1": 409 # Both server and client are HTTP/1.1 409 410 if environ.get("HTTP_CONNECTION", "") == "close": 410 411 self.close_connection = True 411 412 else: 412 # HTTP/1.0413 # Either the server or client (or both) are HTTP/1.0 413 414 if environ.get("HTTP_CONNECTION", "") != "Keep-Alive": 414 415 self.close_connection = True … … 641 642 if "connection" not in hkeys: 642 643 if self.response_protocol == 'HTTP/1.1': 644 # Both server and client are HTTP/1.1 or better 643 645 if self.close_connection: 644 646 self.outheaders.append(("Connection", "close")) 645 647 else: 648 # Server and/or client are HTTP/1.0 646 649 if not self.close_connection: 647 650 self.outheaders.append(("Connection", "Keep-Alive"))

