mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Make galaxy discovery not follow redirects
This commit is contained in:
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user