From d5a1295977da80368fdf205f299878f29ab5de00 Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Fri, 19 Jul 2013 16:49:40 -0700 Subject: [PATCH] Make galaxy discovery not follow redirects --- tools/deploy-galaxy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/deploy-galaxy.js b/tools/deploy-galaxy.js index 6ff3b0ccb0..2b4f1358f9 100644 --- a/tools/deploy-galaxy.js +++ b/tools/deploy-galaxy.js @@ -87,7 +87,11 @@ exports.discoverGalaxy = function (app) { // At some point we may want to send a version in the request so that galaxy // can respond differently to different versions of meteor. - request({ url: url, json: true }, function (err, resp, body) { + request({ + url: url, + json: true, + followRedirect: false + }, function (err, resp, body) { if (! err && resp.statusCode === 200 && body &&