feat(xo-server/disk.import): extract length from header

This commit is contained in:
Julien Fontanet
2018-11-08 10:44:35 +01:00
parent ecfafa0fea
commit 497b3eb296

View File

@@ -125,6 +125,7 @@ async function handleImportContent (req, res, { xapi, id }) {
req.setTimeout(43200000) // 12 hours
try {
req.length = +req.headers['content-length']
await xapi.importVdiContent(id, req)
res.end(format.response(0, true))
} catch (e) {