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

Commit

Permalink
refactor: use rangeResponse flag
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
  • Loading branch information
lidel committed Jul 8, 2019
1 parent 6524f28 commit 01419cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/gateway/resources/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 01419cb

Please sign in to comment.