From edd2898fb4c0e563138f6f5d35789b812bf41a1c Mon Sep 17 00:00:00 2001 From: Dave Scotese Date: Mon, 16 Sep 2024 12:09:56 -0700 Subject: [PATCH] Fix docs typo (#2378) --- documentation/2-options.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/2-options.md b/documentation/2-options.md index 7b745bbd1..b3c0e798a 100644 --- a/documentation/2-options.md +++ b/documentation/2-options.md @@ -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' ``` @@ -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' ```