Skip to content

Commit

Permalink
Update 2-options.md (Foo -> foo)
Browse files Browse the repository at this point in the history
  • Loading branch information
dscotese authored Sep 16, 2024
1 parent 895e463 commit 6309835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/2-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const options = new Options({
}
});

options.headers.foo = 'bar';
options.headers. = '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 6309835

Please sign in to comment.