Skip to content

Commit

Permalink
Fix json docs
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Apr 23, 2019
1 parent 2f7b088 commit f1a6c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -176,7 +176,7 @@ Type: `Object` `Array` `number` `string` `boolean` `null`

**Note:** If you provide this option, `got.stream()` will be read-only.

JSON body. The `Content-Type` header will be set to `application/json` if it's not defined.
JSON body. If the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.

###### responseType

Expand Down Expand Up @@ -223,7 +223,7 @@ Type: `Object`

The form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).

If set to `true` and `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.
If set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.

###### searchParams

Expand Down

0 comments on commit f1a6c1b

Please sign in to comment.