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

Documentation change for transformRequest (#955)

This commit is contained in:
Ken Mayer
2017-08-12 06:02:43 -07:00
committed by Rubén Norte
parent a7c9742942
commit db4acb2ec9
+2 -1
View File
@@ -215,7 +215,8 @@ These are the available config options for making requests. Only the `url` is re
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
// The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
// FormData or Stream
transformRequest: [function (data) {
// You may modify the headers object.
transformRequest: [function (data, headers) {
// Do whatever you want to transform the data
return data;