spec states meta max length is 1024
This commit is contained in:
parent
0b79cd174f
commit
78e0134c8a
2
av98.py
2
av98.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue