changeset 36876 | 97f44b0720e2 |
parent 36872 | 89002d07a114 |
child 36877 | 02bea04b4c54 |
--- a/mercurial/hgweb/hgweb_mod.py Sat Mar 10 16:17:51 2018 -0800 +++ b/mercurial/hgweb/hgweb_mod.py Sat Mar 10 20:16:20 2018 -0800 @@ -408,10 +408,11 @@ if content is res: return res.sendresponse() - - wsgireq.respond(HTTP_OK, ctype) - - return content + elif content is True: + return [] + else: + wsgireq.respond(HTTP_OK, ctype) + return content except (error.LookupError, error.RepoLookupError) as err: wsgireq.respond(HTTP_NOT_FOUND, ctype)