diff --git a/services/project-history/app/js/HistoryStoreManager.js b/services/project-history/app/js/HistoryStoreManager.js index 97947fa46c..42bbe0c4a2 100644 --- a/services/project-history/app/js/HistoryStoreManager.js +++ b/services/project-history/app/js/HistoryStoreManager.js @@ -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 => {