Mercurial > hg
diff mercurial/hgweb/server.py @ 4633:ff7253a0d1da
Cleanup of whitespace, indentation and line continuation.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 19 Jun 2007 08:06:37 +0200 |
parents | 121999244123 |
children | 63b9d2deed48 |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Mon Jun 18 21:30:27 2007 -0500 +++ b/mercurial/hgweb/server.py Tue Jun 19 08:06:37 2007 +0200 @@ -92,7 +92,7 @@ length = self.headers.getheader('content-length') if length: env['CONTENT_LENGTH'] = length - for header in [h for h in self.headers.keys() \ + for header in [h for h in self.headers.keys() if h not in ('content-type', 'content-length')]: hkey = 'HTTP_' + header.replace('-', '_').upper() hval = self.headers.getheader(header) @@ -148,8 +148,8 @@ code = int(code) self.saved_status = http_status bad_headers = ('connection', 'transfer-encoding') - self.saved_headers = [ h for h in headers \ - if h[0].lower() not in bad_headers ] + self.saved_headers = [h for h in headers + if h[0].lower() not in bad_headers] return self._write def _write(self, data):