Make galaxy discovery not follow redirects

This commit is contained in:
Emily Stark
2013-07-19 16:49:40 -07:00
parent bd7e0d768c
commit d5a1295977

View File

@@ -87,7 +87,11 @@ exports.discoverGalaxy = function (app) {
// At some point we may want to send a version in the request so that galaxy // At some point we may want to send a version in the request so that galaxy
// can respond differently to different versions of meteor. // 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 && if (! err &&
resp.statusCode === 200 && resp.statusCode === 200 &&
body && body &&