mercurial/hgweb/webcommands.py
changeset 34654 4182d2065e7a
parent 34608 f12de15c5711
child 34695 e178fcaa3933
--- 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)