Mercurial > hg
changeset 34510:c23fa3103925
hgweb: in protocol adapter, look for bytes instances, not str
Differential Revision: https://phab.mercurial-scm.org/D963
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 05 Oct 2017 14:13:20 -0400 |
parents | e21f274cccea |
children | 67873ec0f4ce |
files | mercurial/hgweb/protocol.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py Thu Oct 05 14:12:51 2017 -0400 +++ b/mercurial/hgweb/protocol.py Thu Oct 05 14:13:20 2017 -0400 @@ -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):