소스 검색

Fix maxrequestsize config check logic

master
JustAnotherArchivist 2 년 전
부모
커밋
471c308c1f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      http2irc.py

+ 1
- 1
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 = {}


불러오는 중...
취소
저장