branch | stable |
changeset 51785 | 99632adff795 |
parent 50926 | 18c8c18993f0 |
child 51859 | f4733654f144 |
--- a/mercurial/hgweb/hgweb_mod.py Thu Aug 01 11:14:58 2024 +0100 +++ b/mercurial/hgweb/hgweb_mod.py Mon Aug 05 20:47:17 2024 +0200 @@ -464,7 +464,7 @@ res.headers[b'ETag'] = tag - if cmd not in webcommands.__all__: + if pycompat.sysstr(cmd) not in webcommands.__all__: msg = b'no such method: %s' % cmd raise ErrorResponse(HTTP_BAD_REQUEST, msg) else: