mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Adding config option to restrict based on the size of the response co…
This commit is contained in:
@@ -263,7 +263,10 @@ These are the available config options for making requests. Only the `url` is re
|
||||
// as well as 'GET' downloads
|
||||
progress: function(progressEvent) {
|
||||
// Do whatever you want with the native progress event
|
||||
}
|
||||
},
|
||||
|
||||
// `maxContentLength` defines the max size of the http response content allowed
|
||||
maxContentLength: 2000
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user