aboutsummaryrefslogtreecommitdiff
path: root/http2irc.py
diff options
context:
space:
mode:
authorGravatar JustAnotherArchivist2021-12-08 01:19:06 +0000
committerGravatar JustAnotherArchivist2021-12-08 01:19:06 +0000
commit471c308c1ff4e591ea48e5ead1d30709ad14a758 (patch)
tree6324b5af375e030bb0c81c2a219ec9753fba8e3e /http2irc.py
parentRevert "Only rebind web server on host/port changes" (diff)
signature
Fix maxrequestsize config check logic
Diffstat (limited to 'http2irc.py')
-rw-r--r--http2irc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/http2irc.py b/http2irc.py
index 1f7d4ea..32e1d01 100644
--- a/http2irc.py
+++ b/http2irc.py
@@ -152,7 +152,7 @@ class Config(dict):
raise InvalidConfig('Invalid web hostname')
if 'port' in obj['web'] and (not isinstance(obj['web']['port'], int) or not 1 <= obj['web']['port'] <= 65535):
raise InvalidConfig('Invalid web port')
- if 'maxrequestsize' in obj['web'] and not isinstance(obj['web']['maxrequestsize'], int) or obj['web']['maxrequestsize'] <= 0:
+ if 'maxrequestsize' in obj['web'] and (not isinstance(obj['web']['maxrequestsize'], int) or obj['web']['maxrequestsize'] <= 0):
raise InvalidConfig('Invalid web maxrequestsize')
if 'maps' in obj:
seenWebPaths = {}