Commit 411d5b66 authored by Vincent Pelletier's avatar Vincent Pelletier

http_wsgibase: Fix chunked encoding header split delimiter.

parent b156ae0c
......@@ -61,7 +61,7 @@ class ChunkedFile(ProxyFile):
if len(chunk_header) > MAX_CHUNKED_HEADER_LENGTH:
raise ValueError('Chunked encoding header too long')
try:
chunk_length = int(chunk_header.split(' ', 1)[0], 16)
chunk_length = int(chunk_header.split(';', 1)[0], 16)
except ValueError:
raise ValueError('Invalid chunked encoding header')
if not chunk_length:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment