summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.py b/server.py
index 4d8e4dc..e729761 100644
--- a/server.py
+++ b/server.py
@@ -48,6 +48,7 @@ def download(file_id, token, filename):
response.headers['Content-Range'] = f'bytes {range_start}-{range_end}/{size}'
response.headers['Content-Length'] = range_end - range_start + 1
+ print(f'{request.remote_addr}: {file_id} OK')
response.headers['Accept-Ranges'] = 'bytes'
response.headers['Content-Disposition'] = f'attachment {filename}'
return response