Skip to content

Commit

Permalink
Add default Host request header to README.md file (#1316)
Browse files Browse the repository at this point in the history
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."
  • Loading branch information
robertoaceves committed Sep 27, 2021
1 parent 8721d79 commit 3b99832
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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` |

Expand Down

0 comments on commit 3b99832

Please sign in to comment.