From 01419cb7539fbdbebd52c0c8f105e1ba151e802f Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 8 Jul 2019 14:59:03 +0200 Subject: [PATCH] refactor: use rangeResponse flag License: MIT Signed-off-by: Marcin Rataj --- src/http/gateway/resources/gateway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/gateway/resources/gateway.js b/src/http/gateway/resources/gateway.js index a65fac4c11..3da2fae5b7 100644 --- a/src/http/gateway/resources/gateway.js +++ b/src/http/gateway/resources/gateway.js @@ -149,7 +149,7 @@ module.exports = { // Set/Sniff Content-Type let contentType - if (request.headers.range && catOptions.length) { + if (rangeResponse) { // Range request always returns opaque byte stream contentType = 'application/octet-stream' } else {