Skip to content

Commit

Permalink
Support uploading bigger files with createWriteStream perry-mitchell#144
Browse files Browse the repository at this point in the history


Added `maxContentLength` to prepareRequestOptions to pass along to `axios`
  • Loading branch information
sean256 committed Feb 15, 2019
1 parent d69de43 commit fee9784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function prepareRequestOptions(requestOptions, methodOptions) {
if (typeof methodOptions.withCredentials === "boolean") {
requestOptions.withCredentials = methodOptions.withCredentials;
}
if (methodOptions.maxContentLength) {
requestOptions.maxContentLength = methodOptions.maxContentLength;
}
}

/**
Expand Down

0 comments on commit fee9784

Please sign in to comment.