From cdb840a577f999672518f0150587fcbc627bec2d Mon Sep 17 00:00:00 2001 From: Justin SB Date: Fri, 19 Sep 2014 16:20:58 -0700 Subject: [PATCH] Make deploy pretty also Still pausing until we merge in the minification changes --- tools/commands.js | 1 + tools/http-helpers.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/commands.js b/tools/commands.js index 67ad4c838d..6e855014fa 100644 --- a/tools/commands.js +++ b/tools/commands.js @@ -903,6 +903,7 @@ main.registerCommand({ main.registerCommand({ name: 'deploy', + pretty: true, minArgs: 1, maxArgs: 1, options: { diff --git a/tools/http-helpers.js b/tools/http-helpers.js index 96f03aa338..15e32354bb 100644 --- a/tools/http-helpers.js +++ b/tools/http-helpers.js @@ -219,10 +219,10 @@ _.extend(exports, { var bodyStreamLength = 0; if (bodyStream) { - // XXX - bodyStreamLength += 4000000; + // XXX Horrible hack... we need the correct length estimate + bodyStreamLength += 8000000; } - // XXX + // XXX A default non-zero resposne size; if much bigger we should provide an estimate var responseLength = 128 * 1024; var totalProgress = { current: 0, end: bodyStreamLength + responseLength, done: false };