From 1b4f9f06b5ca4ac56a3b390aad58b265e6f23422 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Mar 2017 13:11:06 +0530 Subject: [PATCH] ... --- src/calibre/srv/http_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index af9f8f6c92..f83dc87e82 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -178,7 +178,7 @@ def compress_readable_output(src_file, compress_level=6): prefix_written = True data = gzip_prefix() + data yield data - yield zobj.flush() + struct.pack(b"