2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +03:00

Updating transformRequest documentation to include FormData

This commit is contained in:
Shane Daniel
2017-02-11 12:45:01 -08:00
parent 68ec2abc4a
commit d3f63807fe
+1 -1
View File
@@ -199,7 +199,7 @@ These are the available config options for making requests. Only the `url` is re
// `transformRequest` allows changes to the request data before it is sent to the server
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
// The last function in the array must return a string, an ArrayBuffer, or a Stream
// The last function in the array must return a string, an ArrayBuffer, FormData, or a Stream
transformRequest: [function (data) {
// Do whatever you want to transform the data