Manually reset the buffer when streaming request body (#2183)
This commit is contained in:
parent
c3bca97ee1
commit
df8abe9cfd
|
@ -490,6 +490,9 @@ class Http:
|
|||
|
||||
if size <= 0:
|
||||
self.request_body = None
|
||||
# Because we are leaving one CRLF in the buffer, we manually
|
||||
# reset the buffer here
|
||||
self.recv_buffer = bytearray()
|
||||
|
||||
if size < 0:
|
||||
self.keep_alive = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user