mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 03:53:40 -05:00
Don't increment range end when passing to GCS backend
This commit is contained in:
parent
0027d27473
commit
5d9f78322d
1 changed files with 0 additions and 4 deletions
|
@ -115,10 +115,6 @@ async function sendStream(bucketName, key, readStream, sourceMd5) {
|
|||
|
||||
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++
|
||||
}
|
||||
const stream = storage
|
||||
.bucket(bucketName)
|
||||
.file(key)
|
||||
|
|
Loading…
Reference in a new issue