Merge branch 'release-1.4.4.3' into release-1.5

This commit is contained in:
Ben Newman
2017-05-22 20:21:10 -04:00
3 changed files with 14 additions and 4 deletions

View File

@@ -2,8 +2,6 @@
## v1.5, TBD
* Node has been upgraded to version 4.8.3.
* The `meteor-base` package implies a new `dynamic-import` package, which
provides runtime support for [the proposed ECMAScript dynamic
`import(...)` syntax](https://github.com/tc39/proposal-dynamic-import),
@@ -95,6 +93,14 @@
considered non-portable only if it contained any `.node` binary modules.
[Issue #8225](https://github.com/meteor/meteor/issues/8225)
## v1.4.4.3, 2017-05-22
* Node has been upgraded to version 4.8.3.
* A bug in checking body lengths of HTTP responses that was affecting
Galaxy deploys has been fixed.
[PR #8709](https://github.com/meteor/meteor/pull/8709).
## v1.4.4.2, 2017-05-02
* Node has been upgraded to version 4.8.2.

View File

@@ -1,7 +1,8 @@
{
"track": "METEOR",
"version": "1.4.4.2",
"version": "1.4.4.3",
"recommended": false,
"official": true,
"patchFrom": ["1.4.4.2"],
"description": "The Official Meteor Distribution"
}

View File

@@ -308,7 +308,10 @@ _.extend(exports, {
Console.debug("Doing HTTP request: ", options.method || 'GET', options.url);
var request = require('request');
var req = request(options, function (error, response, body) {
if (! error && response && body) {
if (! error &&
response &&
(typeof body === "string" ||
Buffer.isBuffer(body))) {
const contentLength = Number(response.headers["content-length"]);
const actualLength = Buffer.byteLength(body);