# HG changeset patch # User Augie Fackler # Date 2017-10-05 18:13:20 # Node ID c23fa3103925848c26be72151003ffef254b444a # Parent e21f274cccea6ae15523830f7a4d5229ef77ec85 hgweb: in protocol adapter, look for bytes instances, not str Differential Revision: https://phab.mercurial-scm.org/D963 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 @@ def call(repo, req, cmd): 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):