changeset 36328:19a04ca90413

keepalive: headers are native strings, mark them as such # skip-blame just marking some native strings Differential Revision: https://phab.mercurial-scm.org/D2311
author Augie Fackler <augie@google.com>
date Sun, 18 Feb 2018 00:03:05 -0500
parents 2507bf180413
children d18c0cf5f3ab
files mercurial/keepalive.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/keepalive.py	Sun Feb 18 18:22:15 2018 +0530
+++ b/mercurial/keepalive.py	Sun Feb 18 00:03:05 2018 -0500
@@ -324,11 +324,11 @@
                 h.putrequest(
                     req.get_method(), urllibcompat.getselector(req),
                     **pycompat.strkwargs(skipheaders))
-                if 'content-type' not in headers:
-                    h.putheader('Content-type',
-                                'application/x-www-form-urlencoded')
-                if 'content-length' not in headers:
-                    h.putheader('Content-length', '%d' % len(data))
+                if r'content-type' not in headers:
+                    h.putheader(r'Content-type',
+                                r'application/x-www-form-urlencoded')
+                if r'content-length' not in headers:
+                    h.putheader(r'Content-length', r'%d' % len(data))
             else:
                 h.putrequest(
                     req.get_method(), urllibcompat.getselector(req),