diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 478677f4..f14e6794 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')) - 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")