D963: hgweb: in protocol adapter, look for bytes instances, not str
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Oct 8 04:37:54 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc23fa3103925: hgweb: in protocol adapter, look for bytes instances, not str (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D963?vs=2479&id=2524
REVISION DETAIL
https://phab.mercurial-scm.org/D963
AFFECTED FILES
mercurial/hgweb/protocol.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/protocol.py b/mercurial/hgweb/protocol.py
--- a/mercurial/hgweb/protocol.py
+++ b/mercurial/hgweb/protocol.py
@@ -164,7 +164,7 @@
yield chunk
rsp = wireproto.dispatch(repo, p, cmd)
- if isinstance(rsp, str):
+ if isinstance(rsp, bytes):
req.respond(HTTP_OK, HGTYPE, body=rsp)
return []
elif isinstance(rsp, wireproto.streamres):
To: durin42, #hg-reviewers, pulkit, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list