aacerox / node-rest-client

REST API client from node.js
MIT License
377 stars 132 forks source link

add maxBodyLength to enable parameter config #192

Closed xabixab closed 1 year ago

xabixab commented 6 years ago

By adding the item to that array it is possible to configure maxBodyLength. Sometimes is needed to transfer a file as a base64 parameter and 10mb may not be enough.

Now would be possible to configurate by passing

          requestConfig: {
            maxBodyLength: 50 * 1024 * 1024
          }

to args to the request. This would enable 50mb body request.