Skip to content

Commit 31d81c1

Browse files
Merge pull request #61 from sowmyaseshathri/SS-1252-adding-maxbody-for-post
Updated maxBodyLength in post method
2 parents 845d077 + aaa4ee4 commit 31d81c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export default class Client {
3636
url: this.url(path),
3737
headers: this.defaultHeader,
3838
data: buildQueryString(params),
39+
maxContentLength: Infinity,
40+
maxBodyLength: Infinity,
3941
timeout: timeout * 1000,
4042
proxy: this.api.proxy,
4143
};

0 commit comments

Comments
 (0)