File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
569569 }
570570
571571 const err = new AxiosError (
572- 'maxContentLength size of ' + config . maxContentLength + ' exceeded ',
572+ 'stream has been aborted ' ,
573573 AxiosError . ERR_BAD_RESPONSE ,
574574 config ,
575575 lastRequest
Original file line number Diff line number Diff line change @@ -1642,7 +1642,7 @@ describe('supports http with nodejs', function () {
16421642 assert . strictEqual ( success , false , 'request should not succeed' ) ;
16431643 assert . strictEqual ( failure , true , 'request should fail' ) ;
16441644 assert . strictEqual ( error . code , 'ERR_BAD_RESPONSE' ) ;
1645- assert . strictEqual ( error . message , 'maxContentLength size of -1 exceeded ' ) ;
1645+ assert . strictEqual ( error . message , 'stream has been aborted ' ) ;
16461646 done ( ) ;
16471647 } ) . catch ( done ) ;
16481648 } ) ;
You can’t perform that action at this time.
0 commit comments