D4835: py3: use system strings for HTTP response header comparison

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Oct 2 08:46:19 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdd721d8ff13b: py3: use system strings for HTTP response header comparison (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4835?vs=11547&id=11554

REVISION DETAIL
  https://phab.mercurial-scm.org/D4835

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -3324,7 +3324,8 @@
                 getattr(e, 'read', lambda: None)()
                 continue
 
-            if res.headers.get('Content-Type') == 'application/mercurial-cbor':
+            ct = res.headers.get(r'Content-Type')
+            if ct == r'application/mercurial-cbor':
                 ui.write(_('cbor> %s\n') %
                          stringutil.pprint(cborutil.decodeall(body)[0],
                                            bprefix=True,



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list