Patchwork D3248: hgweb: put response headers back into str for Python 3

login
register
mail settings
Submitter phabricator
Date April 12, 2018, 3:34 p.m.
Message ID <13635c4da621d9d5bc5f1841e8f9e000@localhost.localdomain>
Download mbox | patch
Permalink /patch/30799/
State Not Applicable
Headers show

Comments

phabricator - April 12, 2018, 3:34 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe320d9405bba: hgweb: put response headers back into str for Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3248?vs=8012&id=8067

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

AFFECTED FILES
  mercurial/hgweb/request.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/hgweb/request.py b/mercurial/hgweb/request.py
--- a/mercurial/hgweb/request.py
+++ b/mercurial/hgweb/request.py
@@ -518,8 +518,10 @@ 
                 if not chunk:
                     break
 
+        strheaders = [(pycompat.strurl(k), pycompat.strurl(v)) for
+                      k, v in self.headers.items()]
         write = self._startresponse(pycompat.sysstr(self.status),
-                                    self.headers.items())
+                                    strheaders)
 
         if self._bodybytes:
             yield self._bodybytes