Skip to content

Commit

Permalink
Update request migration guide with breaking change
Browse files Browse the repository at this point in the history
Since other people might get bit by the same got gotcha.
  • Loading branch information
Yopi committed Aug 5, 2020
1 parent ddd7930 commit a333cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions documentation/migration-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ To use streams, just call `got.stream(url, options)` or `got(url, {isStream: tru

- The `json` option is not a `boolean`, it's an `Object`. It will be stringified and used as a body.
- The `form` option is an `Object`. It can be a plain object or a [`form-data` instance](https://github.com/sindresorhus/got/#form-data).
- Got will lowercase all custom headers, even if they are specified to not be.
- No `oauth`/`hawk`/`aws`/`httpSignature` option. To sign requests, you need to create a [custom instance](advanced-creation.md#signing-requests).
- No `agentClass`/`agentOptions`/`pool` option.
- No `forever` option. You need to use [forever-agent](https://github.com/request/forever-agent).
Expand Down

0 comments on commit a333cbf

Please sign in to comment.