2
0
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:
bomsy
2016-03-22 18:28:51 +00:00
parent 104276ffa7
commit fefa23a8dd
4 changed files with 39 additions and 2 deletions
+4 -1
View File
@@ -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
}
```