mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 12:21:06 +00:00
Don't modify 'opts' parameter
This commit is contained in:
parent
b37c52fc3a
commit
9d32d4ec16
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@ async function sendStream(bucketName, key, readStream, sourceMd5) {
|
|||
}
|
||||
}
|
||||
|
||||
async function getFileStream(bucketName, key, opts = {}) {
|
||||
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++
|
||||
|
|
Loading…
Reference in a new issue