mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
gracefully handle chunked encoding missing size
Treat it the same as invalid characters where size should be.
This commit is contained in:
parent
79b9a52cc8
commit
a3d130ae51
@ -91,6 +91,8 @@ class ChunkedReader(object):
|
||||
chunk_size = chunk_size.rstrip(b" \t")
|
||||
if any(n not in b"0123456789abcdefABCDEF" for n in chunk_size):
|
||||
raise InvalidChunkSize(chunk_size)
|
||||
if len(chunk_size) == 0:
|
||||
raise InvalidChunkSize(chunk_size)
|
||||
chunk_size = int(chunk_size, 16)
|
||||
|
||||
if chunk_size == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user