diff --git a/app/__mocks__/insomnia-node-libcurl.js b/app/__mocks__/insomnia-node-libcurl.js index b12149302..c67c3827f 100644 --- a/app/__mocks__/insomnia-node-libcurl.js +++ b/app/__mocks__/insomnia-node-libcurl.js @@ -97,7 +97,7 @@ Curl.option = { HTTPGET: 'HTTPGET', HTTPHEADER: 'HTTPHEADER', HTTPPOST: 'HTTPPOST', - INFILESIZE: 'INFILESIZE', + INFILESIZE_LARGE: 'INFILESIZE_LARGE', KEYPASSWD: 'KEYPASSWD', MAXREDIRS: 'MAXREDIRS', NETRC: 'NETRC', diff --git a/app/network/__tests__/network.test.js b/app/network/__tests__/network.test.js index a3f213dd7..9d3fb0a0b 100644 --- a/app/network/__tests__/network.test.js +++ b/app/network/__tests__/network.test.js @@ -265,7 +265,7 @@ describe('actuallySend()', () => { 'Transfer-Encoding: ' ], NOPROGRESS: false, - INFILESIZE: 13, + INFILESIZE_LARGE: 13, PROXY: '', TIMEOUT_MS: 0, UPLOAD: 1, diff --git a/app/network/network.js b/app/network/network.js index c9459b91a..8454d5969 100644 --- a/app/network/network.js +++ b/app/network/network.js @@ -400,7 +400,7 @@ export function _actuallySend ( const fileName = renderedRequest.body.fileName || ''; const fd = fs.openSync(fileName, 'r+'); - setOpt(Curl.option.INFILESIZE, size); + setOpt(Curl.option.INFILESIZE_LARGE, size); setOpt(Curl.option.UPLOAD, 1); setOpt(Curl.option.READDATA, fd); diff --git a/flow-typed/insomnia-node-libcurl.js b/flow-typed/insomnia-node-libcurl.js index b2fd326b4..22ac3eb70 100644 --- a/flow-typed/insomnia-node-libcurl.js +++ b/flow-typed/insomnia-node-libcurl.js @@ -12,7 +12,7 @@ declare class Curl { HTTPGET: number, HTTPHEADER: number, HTTPPOST: number, - INFILESIZE: number, + INFILESIZE_LARGE: number, KEYPASSWD: number, MAXREDIRS: number, NETRC: number,