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

@@ -457,8 +457,8 @@ test_edit_books.test_edit_books 30 - 28 - 0 + 27 + 1 0 2 @@ -763,11 +763,33 @@ - +
test_upload_cover_hdd
- PASS + +
+ FAIL +
+ + + + @@ -1829,8 +1851,8 @@ AssertionError: False is not true : logfile config value is not empty after rese test_updater.test_updater 7 - 5 - 1 + 6 + 0 0 1 @@ -1867,33 +1889,11 @@ AssertionError: False is not true : logfile config value is not empty after rese - +
test_check_update_stable_versions
- -
- FAIL -
- - - - + PASS @@ -2520,6 +2520,12 @@ AssertionError: False is not true Basic + + comicapi + 2.1 + test_edit_additional_books + + lxml 4.5.0 @@ -2550,6 +2556,12 @@ AssertionError: False is not true test_edit_books + + goodreads + 0.3.2 + test_goodreads + + jsonschema 3.2.0