fix by using PUT instead of POST
This commit is contained in:
parent
38683a7fea
commit
70bedaf8dd
@ -277,12 +277,13 @@ function call(args) {
|
|||||||
var input = pipeWithErrors([
|
var input = pipeWithErrors([
|
||||||
createReadStream(file),
|
createReadStream(file),
|
||||||
progressStream({ time: 1e3 }, printProgress),
|
progressStream({ time: 1e3 }, printProgress),
|
||||||
]) && createReadStream(file);
|
]);
|
||||||
|
|
||||||
return sent(url, input, {
|
return sent(url, input, {
|
||||||
headers: {
|
headers: {
|
||||||
// 'content-length': stats.size,
|
'content-length': stats.size,
|
||||||
},
|
},
|
||||||
|
method: 'PUT'
|
||||||
}).get(0);
|
}).get(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user