From 81f15790d6c8e66d5444876bdec73b7aab94fc7a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 18 Jun 2018 22:21:37 -0600 Subject: [PATCH] fix comments --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2f88787..2329d4e 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,7 @@ The first argument can be either a `url` or an `options` object. The only requir --- -- `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer`, `String` or `ReadStream`. If `json` is `true`, then `body` must be a JSON-serializable object. -- `json` - sets `body` to JSON representation of value and adds `Content-type: application/json` header. Additionally, parses the response body as JSON. @@ -62,8 +60,7 @@ The first argument can be either a `url` or an `options` object. The only requir --- -- `encoding` - encoding to be used on `setEncoding` of response data. If `null`, the `body` is returned as a `Buffer`. Anything else **(including the default value of `undefined`)** will be passed as the [encoding](http://nodejs.org/api/buffer.html#buffer_buffer) parameter to `toString()` (meaning this is effectively `utf8` by default). (**Note:** if you expect binary data, you should set `encoding: null`.)