Mercurial > hg
diff mercurial/hgweb/server.py @ 34740:b2601c5977a4
hgweb: more "http headers are native strs" cleanup
Differential Revision: https://phab.mercurial-scm.org/D1108
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 15 Oct 2017 00:38:33 -0400 |
parents | 60e7da55e5e6 |
children | 46c97973ee46 7de7bd407251 |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Sun Oct 15 00:05:43 2017 -0400 +++ b/mercurial/hgweb/server.py Sun Oct 15 00:38:33 2017 -0400 @@ -194,9 +194,9 @@ self._chunked = (not self.close_connection and self.request_version == "HTTP/1.1") if self._chunked: - self.send_header('Transfer-Encoding', 'chunked') + self.send_header(r'Transfer-Encoding', r'chunked') else: - self.send_header('Connection', 'close') + self.send_header(r'Connection', r'close') self.end_headers() self.sent_headers = True