Skip to content

Commit

Permalink
Fix docs typo (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
dscotese authored Sep 16, 2024
1 parent 895e463 commit 89b7fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/2-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ options.headers.foo = 'bar';

// Note that `Options` stores normalized options, therefore it needs to be passed as the third argument.
const {headers} = await got('anything', undefined, options).json();
console.log(headers.Foo);
console.log(headers.foo);
//=> 'bar'
```

Expand All @@ -52,7 +52,7 @@ options.headers.foo = 'bar';

// Note that `options` is a plain object, therefore it needs to be passed as the second argument.
const {headers} = await got('anything', options).json();
console.log(headers.Foo);
console.log(headers.foo);
//=> 'bar'
```

Expand Down

0 comments on commit 89b7fdf

Please sign in to comment.