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."
This commit is contained in:
robertoaceves 2021-09-27 13:06:05 -04:00 committed by GitHub
parent 8721d79208
commit 3b99832e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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` |