send content-length header when creating blobs GitOrigin-RevId: fd541f307786cc883c6545ed8dfb750b03a025f2
@@ -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 => {