From 50d866efd75cba3f3cc46eb6b2320c5a0edcd70f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Oct 2015 20:44:58 +0530 Subject: [PATCH] Ensure use_sendfile exists --- src/calibre/srv/http_response.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index aab51e0304..76e2a88b7b 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -310,6 +310,8 @@ class StaticOutput(object): class HTTPConnection(HTTPRequest): + use_sendfile = False + def write(self, buf, end=None): pos = buf.tell() if end is None: