From 70bedaf8ddb0690caeae0899ea3058c42841ba01 Mon Sep 17 00:00:00 2001 From: Olivier Lambert Date: Wed, 24 Sep 2014 17:09:59 +0200 Subject: [PATCH] fix by using PUT instead of POST --- packages/xo-cli/src/cli.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/xo-cli/src/cli.js b/packages/xo-cli/src/cli.js index 9e76da762..17993d8b2 100644 --- a/packages/xo-cli/src/cli.js +++ b/packages/xo-cli/src/cli.js @@ -277,12 +277,13 @@ function call(args) { var input = pipeWithErrors([ createReadStream(file), progressStream({ time: 1e3 }, printProgress), - ]) && createReadStream(file); + ]); return sent(url, input, { headers: { - // 'content-length': stats.size, + 'content-length': stats.size, }, + method: 'PUT' }).get(0); }); }