mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #14266 from overleaf/bg-node-18-avoid-chunked-uploads
send content-length header when creating blobs GitOrigin-RevId: fd541f307786cc883c6545ed8dfb750b03a025f2
This commit is contained in:
parent
c71bf25363
commit
06c3de586a
1 changed files with 1 additions and 0 deletions
|
@ -312,6 +312,7 @@ function _createBlob(historyId, fsPath, _callback) {
|
|||
fetchNothing(url, {
|
||||
method: 'PUT',
|
||||
body: outStream,
|
||||
headers: { 'Content-Length': byteLength }, // add the content length to work around problems with chunked encoding in node 18
|
||||
...getHistoryFetchOptions(),
|
||||
})
|
||||
.then(res => {
|
||||
|
|
Loading…
Reference in a new issue