From a14392fee296c77d0898cc525450385ff304ec11 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Mon, 10 Aug 2015 14:03:28 +0500 Subject: [PATCH] Clarify how `body` is stringified when an object Some think that `JSON.stringify` will be used. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ebb6eed..36cdc00 100644 --- a/readme.md +++ b/readme.md @@ -82,7 +82,7 @@ If present in `options` and `options.method` is not set, `options.method` will b If `content-length` or `transfer-encoding` is not set in `options.headers` and `body` is a string or buffer, `content-length` will be set to the body length. -If `body` is a plain Object, it will be stringified and sent as `application/x-www-form-urlencoded`. +If `body` is a plain Object, it will be stringified with [`querystring.stringify`](https://nodejs.org/api/querystring.html#querystring_querystring_stringify_obj_sep_eq_options) and sent as `application/x-www-form-urlencoded`. ###### encoding