D963: hgweb: in protocol adapter, look for bytes instances, not str
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Oct 5 21:31:58 UTC 2017
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list