diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 0fcff5a2..5d91706c 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -372,7 +372,7 @@ class Response(object): chunk_size = "%X\r\n" % nbytes self.sock.sendall(chunk_size.encode('utf-8')) if nbytes > 0: - self.sock.sendfile(respiter.filelike, count=nbytes) + self.sock.sendfile(respiter.filelike, offset=offset, count=nbytes) if self.is_chunked(): self.sock.sendall(b"\r\n")