self.buffer = self.buffer[remaining:]
def readline(self, size=None):
if not self.close_connection:
- if (not self.close_connection)
and (not self.chunked_read):
+ if (not self.close_connection):
# Read any remaining request body data on the socket.
# "If an origin server receives a request that does not include an
# Expect request-header field with the "100-continue" expectation,
# requirement is not be construed as preventing a server from
# defending itself against denial-of-service attacks, or from
# badly broken client implementations."
- remaining = getattr(self.rfile, 'remaining', 0)