##// END OF EJS Templates
hgweb: in protocol adapter, look for bytes instances, not str...
Augie Fackler -
r34511:c23fa310 default
parent child Browse files
Show More
@@ -164,7 +164,7 b' def call(repo, req, cmd):'
164 yield chunk
164 yield chunk
165
165
166 rsp = wireproto.dispatch(repo, p, cmd)
166 rsp = wireproto.dispatch(repo, p, cmd)
167 if isinstance(rsp, str):
167 if isinstance(rsp, bytes):
168 req.respond(HTTP_OK, HGTYPE, body=rsp)
168 req.respond(HTTP_OK, HGTYPE, body=rsp)
169 return []
169 return []
170 elif isinstance(rsp, wireproto.streamres):
170 elif isinstance(rsp, wireproto.streamres):
General Comments 0
You need to be logged in to leave comments. Login now