Mercurial > hg > mercurial-crew-with-dirclash
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 +++ b/mercurial/hgweb/server.py @@ -92,7 +92,7 @@ class _hgwebhandler(object, BaseHTTPServ 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 @@ class _hgwebhandler(object, BaseHTTPServ 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):