Skip to content

Commit

Permalink
refactor: add maxBodyLenght to request args (PR #192 )
Browse files Browse the repository at this point in the history
  • Loading branch information
aacerox committed Oct 19, 2023
1 parent cfa5561 commit 29a11b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/NrcConnectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ export class NrcConnectManager {
* @param {*} options
*/
#configureOptions(options) {
const followRedirectsProps = ['followRedirects', 'maxRedirects'];
const followRedirectsProps = [
'followRedirects',
'maxRedirects',
'maxBodyLength',
];

// add follows-redirects config
followRedirectsProps.forEach((redirectProp) => {
Expand Down
6 changes: 3 additions & 3 deletions test/specs/TestRIOFacade.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ describe('IO Facade', function() {
});

after(function() {
server.close();
// server will respond with ECONNRESET if we do not wait her
// server will respond with ECONNRESET if we do not wait here
setTimeout(() => {
server.close();
console.log('server stopped');
}, 500 );
}, 1000 );
});
});

0 comments on commit 29a11b8

Please sign in to comment.