From 9ccf3d855e8b16b05c4562c00142e6da2aa90e98 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Sun, 9 Aug 2015 20:42:52 +0100 Subject: [PATCH] Add content-length to downloads --- web/routes/file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/routes/file.js b/web/routes/file.js index 29228f4..e3b5df0 100644 --- a/web/routes/file.js +++ b/web/routes/file.js @@ -65,6 +65,7 @@ export function* get(id, name, size) { } this.set('Content-type', type); + this.set('Content-length', file.file_size); this.set('Expires', new Date(2020, 1).toISOString()); this.set('Cache-control', 'max-age=2592000');