]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix typo in docs for `docs/en/docs/advanced/middleware.md` (#5376)
authorMuhammad Abdur Rakib <103581704+rifatrakib@users.noreply.github.com>
Tue, 22 Nov 2022 13:29:57 +0000 (19:29 +0600)
committerGitHub <noreply@github.com>
Tue, 22 Nov 2022 13:29:57 +0000 (13:29 +0000)
Fix typo in documentation

A full-stop was missing in `TrustedHostMiddleware` section

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/advanced/middleware.md

index ed90f29be7d4764037b308ccd33948889f44d631..3bf49e39227607db5448f1db678f1553c4258c99 100644 (file)
@@ -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.