Skip to content

Commit

Permalink
Replace 'maxBodyLength' error band-aid
Browse files Browse the repository at this point in the history
Temporary version pinning was shown to be insufficient by #52. Since axios/axios#1287 this is
no longer blocking upstream. Setting 'maxContentLength' now properly resolves this once and for all.
  • Loading branch information
ramijarrar committed Mar 5, 2018
1 parent 0b6e400 commit 0699b4e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
3 changes: 2 additions & 1 deletion distribution/lib/azure.js
Expand Up @@ -398,7 +398,8 @@ var AzureMethods = function () {
method: 'put',
url: '/vfs/meteor-azure/bundle.tar.gz',
headers: { 'If-Match': '*' },
data: _fs2.default.createReadStream(bundleFile)
data: _fs2.default.createReadStream(bundleFile),
maxContentLength: -1
});

case 3:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -38,13 +38,12 @@
"npm-watch": "^0.3.0"
},
"dependencies": {
"axios": "^0.17.1",
"axios": "^0.18.0",
"azure-arm-website": "^2.0.0-preview",
"babel-polyfill": "^6.23.0",
"command-exists": "^1.2.2",
"commander": "^2.9.0",
"core-js": "^2.4.0",
"follow-redirects": "~1.2.5",
"joi": "^12.0.0",
"jsesc": "^2.5.1",
"jsonfile": "^4.0.0",
Expand Down
1 change: 1 addition & 0 deletions source/lib/azure.js
Expand Up @@ -172,6 +172,7 @@ export default class AzureMethods {
url: '/vfs/meteor-azure/bundle.tar.gz',
headers: { 'If-Match': '*' },
data: fs.createReadStream(bundleFile),
maxContentLength: -1,
});
});
}
Expand Down
22 changes: 8 additions & 14 deletions yarn.lock
Expand Up @@ -205,11 +205,11 @@ aws4@^1.2.1, aws4@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"

axios@^0.17.1:
version "0.17.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.1.tgz#2d8e3e5d0bdbd7327f91bc814f5c57660f81824d"
axios@^0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.18.0.tgz#32d53e4851efdc0a11993b6cd000789d70c05102"
dependencies:
follow-redirects "^1.2.5"
follow-redirects "^1.3.0"
is-buffer "^1.1.5"

azure-arm-website@^2.0.0-preview:
Expand Down Expand Up @@ -998,7 +998,7 @@ date-utils@*:
version "1.2.21"
resolved "https://registry.yarnpkg.com/date-utils/-/date-utils-1.2.21.tgz#61fb16cdc1274b3c9acaaffe9fc69df8720a2b64"

debug@^2.2.0, debug@^2.6.8, debug@^2.6.9:
debug@^2.2.0, debug@^2.6.8:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
dependencies:
Expand Down Expand Up @@ -1350,15 +1350,9 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

follow-redirects@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.5.tgz#ffd3e14cbdd5eaa72f61b6368c1f68516c2a26cc"
dependencies:
debug "^2.6.9"

follow-redirects@~1.2.5:
version "1.2.6"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.6.tgz#4dcdc7e4ab3dd6765a97ff89c3b4c258117c79bf"
follow-redirects@^1.3.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.4.1.tgz#d8120f4518190f55aac65bb6fc7b85fcd666d6aa"
dependencies:
debug "^3.1.0"

Expand Down

0 comments on commit 0699b4e

Please sign in to comment.