Fixes from Test

This commit is contained in:
Ozzie Isaacs
2025-01-04 06:54:34 +01:00
parent f78a2367a2
commit e531bc0f0c
3 changed files with 136 additions and 480 deletions
+1 -2
View File
@@ -960,9 +960,8 @@ def do_download_file(book, book_format, client, data, headers):
# ToDo Check headers parameter
for element in headers:
response.headers[element[0]] = element[1]
log.info('Downloading file: \'%s\' by %s', format(os.path.join(filename, book_name + "." + book_format)),
log.info('Downloading file: \'%s\' by %s - %s', format(os.path.join(filename, book_name + "." + book_format)),
current_user.name, request.headers.get('X-Forwarded-For', request.remote_addr))
log.info('Downloading file: {}'.format(os.path.join(filename, book_name + "." + book_format)))
return response