From db4acb2ec99509942b2664eb0fae3e309ffcfc54 Mon Sep 17 00:00:00 2001 From: Ken Mayer Date: Sat, 12 Aug 2017 06:02:43 -0700 Subject: [PATCH] Documentation change for transformRequest (#955) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87a571e..921133a 100644 --- a/README.md +++ b/README.md @@ -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;