From: Muhammad Abdur Rakib <103581704+rifatrakib@users.noreply.github.com> Date: Tue, 22 Nov 2022 13:29:57 +0000 (+0600) Subject: ✏️ Fix typo in docs for `docs/en/docs/advanced/middleware.md` (#5376) X-Git-Tag: 0.88.0~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6883f362a54122e949b3eb622293ade1f9658513;p=thirdparty%2Ffastapi%2Ffastapi.git ✏️ Fix typo in docs for `docs/en/docs/advanced/middleware.md` (#5376) Fix typo in documentation A full-stop was missing in `TrustedHostMiddleware` section Co-authored-by: Sebastián Ramírez --- diff --git a/docs/en/docs/advanced/middleware.md b/docs/en/docs/advanced/middleware.md index ed90f29be7..3bf49e3922 100644 --- a/docs/en/docs/advanced/middleware.md +++ b/docs/en/docs/advanced/middleware.md @@ -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.