comparison mercurial/hgweb/server.py @ 2600:c4325f0a9b91

clean up trailing white space.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 12 Jul 2006 08:28:00 -0700
parents 276de216d2c5
children 56e98084e040
comparison
equal deleted inserted replaced
2599:e4b5e48052c6 2600:c4325f0a9b91
127 if h[0].lower() == 'content-length': 127 if h[0].lower() == 'content-length':
128 should_close = False 128 should_close = False
129 self.length = int(h[1]) 129 self.length = int(h[1])
130 # The value of the Connection header is a list of case-insensitive 130 # The value of the Connection header is a list of case-insensitive
131 # tokens separated by commas and optional whitespace. 131 # tokens separated by commas and optional whitespace.
132 if 'close' in [token.strip().lower() for token in 132 if 'close' in [token.strip().lower() for token in
133 self.headers.get('connection', '').split(',')]: 133 self.headers.get('connection', '').split(',')]:
134 should_close = True 134 should_close = True
135 if should_close: 135 if should_close:
136 self.send_header('Connection', 'close') 136 self.send_header('Connection', 'close')
137 self.close_connection = should_close 137 self.close_connection = should_close