changeset 52638 | dc36535a5edc |
parent 51859 | f4733654f144 |
child 52644 | e627cc25b6f3 |
--- a/mercurial/hgweb/webcommands.py Mon Jan 06 13:54:40 2025 -0500 +++ b/mercurial/hgweb/webcommands.py Mon Jan 06 14:07:43 2025 -0500 @@ -1258,7 +1258,7 @@ msg = b'Unsupported archive type: %s' % stringutil.pprint(type_) raise ErrorResponse(HTTP_NOT_FOUND, msg) - if not ((type_ in allowed or web.configbool(b"web", b"allow" + type_))): + if not (type_ in allowed or web.configbool(b"web", b"allow" + type_)): msg = b'Archive type not allowed: %s' % type_ raise ErrorResponse(HTTP_FORBIDDEN, msg)