--- a/mercurial/configitems.py Fri Jun 30 03:44:15 2017 +0200
+++ b/mercurial/configitems.py Fri Jun 30 03:44:16 2017 +0200
@@ -140,6 +140,9 @@
coreconfigitem('server', 'validate',
default=False,
)
+coreconfigitem('server', 'zliblevel',
+ default=-1,
+)
coreconfigitem('ui', 'clonebundleprefers',
default=list,
)
--- a/mercurial/hgweb/protocol.py Fri Jun 30 03:44:15 2017 +0200
+++ b/mercurial/hgweb/protocol.py Fri Jun 30 03:44:16 2017 +0200
@@ -135,7 +135,7 @@
# Don't allow untrusted settings because disabling compression or
# setting a very high compression level could lead to flooding
# the server's network or CPU.
- opts = {'level': self.ui.configint('server', 'zliblevel', -1)}
+ opts = {'level': self.ui.configint('server', 'zliblevel')}
return HGTYPE, util.compengines['zlib'], opts
def iscmd(cmd):