Skip to content

Commit d44b2d2

Browse files
authored
Fix options.headers docs
1 parent 59ae3b0 commit d44b2d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

documentation/2-options.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ The [HTTP headers](https://datatracker.ietf.org/doc/html/rfc7231#section-8.3) to
237237
import got from 'got';
238238

239239
const {headers} = await got.post('https://httpbin.org/anything', {
240-
hello: 'world'
240+
headers: {
241+
hello: 'world'
242+
}
241243
}).json();
242244

243245
console.log(method);

0 commit comments

Comments
 (0)