diff mercurial/hgweb/hgweb_mod.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 c51380879054
children afd7fd950f6e
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sun Oct 15 00:05:43 2017 -0400
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Oct 15 00:38:33 2017 -0400
@@ -378,7 +378,7 @@
                     req.env.get('X-HgHttp2', '')):
                     req.drain()
                 else:
-                    req.headers.append(('Connection', 'Close'))
+                    req.headers.append((r'Connection', r'Close'))
                 req.respond(inst, protocol.HGTYPE,
                             body='0\n%s\n' % inst)
                 return ''