Skip to content

Commit 202a890

Browse files
authored
Merge pull request axios#696 from simshanith/formdata-documentation
Updating transformRequest documentation to include FormData
2 parents 3704d57 + d3f6380 commit 202a890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ These are the available config options for making requests. Only the `url` is re
199199

200200
// `transformRequest` allows changes to the request data before it is sent to the server
201201
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
202-
// The last function in the array must return a string, an ArrayBuffer, or a Stream
202+
// The last function in the array must return a string, an ArrayBuffer, FormData, or a Stream
203203
transformRequest: [function (data) {
204204
// Do whatever you want to transform the data
205205

0 commit comments

Comments
 (0)