changeset 2600 | c4325f0a9b91 |
parent 2582 | 276de216d2c5 |
child 2650 | 56e98084e040 |
--- a/mercurial/hgweb/server.py Wed Jul 12 09:01:10 2006 +0200 +++ b/mercurial/hgweb/server.py Wed Jul 12 08:28:00 2006 -0700 @@ -129,7 +129,7 @@ self.length = int(h[1]) # The value of the Connection header is a list of case-insensitive # tokens separated by commas and optional whitespace. - if 'close' in [token.strip().lower() for token in + if 'close' in [token.strip().lower() for token in self.headers.get('connection', '').split(',')]: should_close = True if should_close: