Browse Source

Fix maxrequestsize config check logic

master
JustAnotherArchivist 2 years ago
parent
commit
471c308c1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      http2irc.py

+ 1
- 1
http2irc.py View File

@@ -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 = {}


Loading…
Cancel
Save