diff --git a/cps/helper.py b/cps/helper.py index 2361838c..ee733983 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -609,7 +609,9 @@ def do_download_file(book, book_format, data, headers): # ToDo: improve error handling log.error('File not found: %s', os.path.join(filename, data.name + "." + book_format)) response = make_response(send_from_directory(filename, data.name + "." + book_format)) - response.headers = headers + # ToDo Check headers parameter + for element in headers: + response.headers[element[0]] = element[1] return response ################################## diff --git a/test/Calibre-Web TestSummary.html b/test/Calibre-Web TestSummary.html index 4f560221..1a9fb744 100755 --- a/test/Calibre-Web TestSummary.html +++ b/test/Calibre-Web TestSummary.html @@ -36,17 +36,17 @@
Start Time: 2020-05-05 19:02:03
+Start Time: 2020-05-10 13:45:56
Stop Time: 2020-05-05 19:58:37
+Stop Time: 2020-05-10 14:42:12
Duration: 47:42 min
+Duration: 47:37 min