Limit server header response length #9

Merged
solderpunk merged 2 commits from jprjr/AV-98:header-limit into master 2020-05-16 16:54:03 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 78e0134c8a - Show all commits

View File

@ -366,7 +366,7 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
# Validate header
status, meta = header.split(maxsplit=1)
if len(header) > 1024 or len(status) != 2 or not status.isnumeric():
if len(meta) > 1024 or len(status) != 2 or not status.isnumeric():
print("ERROR: Received invalid header from server!")
f.close()
return