spec states meta max length is 1024

This commit is contained in:
jprjr 2020-05-16 13:59:05 +00:00
parent 0b79cd174f
commit 78e0134c8a
1 changed files with 1 additions and 1 deletions

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