Patchwork D3726: hgweb: pass a sysstr to low-level _start_response method

login
register
mail settings
Submitter phabricator
Date June 13, 2018, 12:37 p.m.
Message ID <3e558284bbaf3ad916593aff0841a75a@localhost.localdomain>
Download mbox | patch
Permalink /patch/32111/
State Not Applicable
Headers show

Comments

phabricator - June 13, 2018, 12:37 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9f499d28efb4: hgweb: pass a sysstr to low-level _start_response method (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3726?vs=9038&id=9047

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

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -125,8 +125,9 @@ 
         # Ensure the slicing of path below is valid
         if (path != self.server.prefix
             and not path.startswith(self.server.prefix + b'/')):
-            self._start_response(common.statusmessage(404), [])
-            self._write("Not Found")
+            self._start_response(pycompat.strurl(common.statusmessage(404)),
+                                 [])
+            self._write(b"Not Found")
             self._done()
             return