crash_server: Fix assertion when downloading files with larger chunk sizes
This commit is contained in:
parent
c38d62b233
commit
1eab4322f8
|
@ -175,7 +175,6 @@ class CrashHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||||
size_str += self.rfile.read(1)
|
size_str += self.rfile.read(1)
|
||||||
# Remove the trailing "\r\n".
|
# Remove the trailing "\r\n".
|
||||||
size_str = size_str[:-2]
|
size_str = size_str[:-2]
|
||||||
assert len(size_str) <= 4
|
|
||||||
return int(size_str, 16)
|
return int(size_str, 16)
|
||||||
|
|
||||||
def _get_chunk_data(self, chunk_size):
|
def _get_chunk_data(self, chunk_size):
|
||||||
|
|
Loading…
Reference in New Issue