From 5d9f78322d2fc827be5ce1b4a46f2cffa16cba00 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Tue, 9 Jun 2020 10:01:47 +0100 Subject: [PATCH] Don't increment range end when passing to GCS backend --- services/filestore/app/js/GcsPersistor.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/filestore/app/js/GcsPersistor.js b/services/filestore/app/js/GcsPersistor.js index c3bf81f45d..05425abee5 100644 --- a/services/filestore/app/js/GcsPersistor.js +++ b/services/filestore/app/js/GcsPersistor.js @@ -115,10 +115,6 @@ async function sendStream(bucketName, key, readStream, sourceMd5) { async function getFileStream(bucketName, key, _opts = {}) { const opts = Object.assign({}, _opts) - if (opts.end) { - // S3 (and http range headers) treat 'end' as inclusive, so increase this by 1 - opts.end++ - } const stream = storage .bucket(bucketName) .file(key)