Skip to content

Commit

Permalink
Documentation change for transformRequest (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmayer authored and rubennorte committed Aug 12, 2017
1 parent a7c9742 commit db4acb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db4acb2

Please sign in to comment.