From 3b99832e2331908631a70dd07fccdda8e850ec94 Mon Sep 17 00:00:00 2001 From: robertoaceves Date: Mon, 27 Sep 2021 13:06:05 -0400 Subject: [PATCH] Add default Host request header to README.md file (#1316) Mention the Host header in the default request headers table. According to the standard [RFC 7230 Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |https://httpwg.org/specs/rfc7230.html#header.host] "A client MUST send a Host header field in all HTTP/1.1 request messages." --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index aa2e2af63..4d0652dbe 100644 --- a/README.md +++ b/README.md @@ -491,6 +491,7 @@ If no values are set, the following request headers will be sent automatically: | `Accept` | `*/*` | | `Connection` | `close` _(when no `options.agent` is present)_ | | `Content-Length` | _(automatically calculated, if possible)_ | +| `Host` | _(host and port information from the target URI)_ | | `Transfer-Encoding` | `chunked` _(when `req.body` is a stream)_ | | `User-Agent` | `node-fetch` |