Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Mar 15, 2019
1 parent e62e81b commit db484b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Type: `string` `Buffer` `stream.Readable` [`form-data` instance](https://github.

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

If present in `options` and `options.method` is not set, `options.method` will be set to `POST`.
If present in `options` and `options.method` is not set, it will throw.

The `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.

Expand Down

0 comments on commit db484b9

Please sign in to comment.