Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 01419cb

Browse files
committed
refactor: use rangeResponse flag
License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent 6524f28 commit 01419cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/gateway/resources/gateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = {
149149

150150
// Set/Sniff Content-Type
151151
let contentType
152-
if (request.headers.range && catOptions.length) {
152+
if (rangeResponse) {
153153
// Range request always returns opaque byte stream
154154
contentType = 'application/octet-stream'
155155
} else {

0 commit comments

Comments
 (0)