Skip to content

Commit

Permalink
fix: Range request headers not correctly forwarded to S3 (close #125)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Jan 13, 2020
1 parent 6187714 commit 7878a7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/express-gateway/plugins/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
Range: req.headers.range // Forward range requests
})
.on('httpHeaders', (statusCode, headers) => {
res.status(statusCode);
res.set(headers);
})
.createReadStream()
Expand Down

0 comments on commit 7878a7a

Please sign in to comment.