Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 34654:4182d2065e7a
configitems: drop redundant default of web.allow<archtype>
Otherwise develwarn would be sent to stderr. I've added blackbox logging
to capture warnings.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 13 Oct 2017 00:22:54 +0900 |
parents | f12de15c5711 |
children | e178fcaa3933 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Fri Oct 13 00:14:28 2017 +0900 +++ b/mercurial/hgweb/webcommands.py Fri Oct 13 00:22:54 2017 +0900 @@ -1113,7 +1113,7 @@ raise ErrorResponse(HTTP_NOT_FOUND, msg) if not ((type_ in allowed or - web.configbool("web", "allow" + type_, False))): + web.configbool("web", "allow" + type_))): msg = 'Archive type not allowed: %s' % type_ raise ErrorResponse(HTTP_FORBIDDEN, msg)