diff options
| author | 2021-12-08 01:19:06 +0000 | |
|---|---|---|
| committer | 2021-12-08 01:19:06 +0000 | |
| commit | 471c308c1ff4e591ea48e5ead1d30709ad14a758 (patch) | |
| tree | 6324b5af375e030bb0c81c2a219ec9753fba8e3e /http2irc.py | |
| parent | Revert "Only rebind web server on host/port changes" (diff) | |
| signature | ||
Fix maxrequestsize config check logic
Diffstat (limited to 'http2irc.py')
| -rw-r--r-- | http2irc.py | 2 |
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 = {} |
