@tussle/core
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -14,4 +14,5 @@ "use strict"; | ||
const withParametersFromContext = (0, rxjs_1.pipe)((0, operators_1.switchMap)((item) => { | ||
var _a; | ||
const params = extractCreationHeaders(item.ctx); | ||
if (isNaN(params.uploadLength)) { | ||
if (isNaN(params.uploadLength) && !((_a = item.ctx.request.getHeader('upload-concat')) === null || _a === void 0 ? void 0 : _a.startsWith('final'))) { | ||
throw new Error('Failed to get upload length from header.'); | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "@tussle/core", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "Tussle tus daemon core module", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@tussle/spec": "^0.6.3", | ||
"@tussle/spec": "^0.6.4", | ||
"jest": "^29.2.2", | ||
@@ -37,3 +37,3 @@ "npm-run-all": "^4.1.5", | ||
}, | ||
"gitHead": "b8f7c63bfb52df4b95443f6e6c09b7c7388c1d5a" | ||
"gitHead": "a243eeb89d59077530f6e62153411c3f955a4e05" | ||
} |
Sorry, the diff of this file is not supported yet
43593
599