mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02: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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user