Skip to content

Commit

Permalink
✏️ Fix typo in docs for docs/en/docs/advanced/middleware.md (#5376)
Browse files Browse the repository at this point in the history
Fix typo in documentation

A full-stop was missing in `TrustedHostMiddleware` section

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
  • Loading branch information
rifatrakib and tiangolo committed Nov 22, 2022
1 parent 4638b2c commit 6883f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/docs/advanced/middleware.md
Expand Up @@ -68,7 +68,7 @@ Enforces that all incoming requests have a correctly set `Host` header, in order

The following arguments are supported:

* `allowed_hosts` - A list of domain names that should be allowed as hostnames. Wildcard domains such as `*.example.com` are supported for matching subdomains to allow any hostname either use `allowed_hosts=["*"]` or omit the middleware.
* `allowed_hosts` - A list of domain names that should be allowed as hostnames. Wildcard domains such as `*.example.com` are supported for matching subdomains. To allow any hostname either use `allowed_hosts=["*"]` or omit the middleware.

If an incoming request does not validate correctly then a `400` response will be sent.

Expand Down

0 comments on commit 6883f36

Please sign in to comment.