]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Fix GZipMiddleware code block linking to TrustedHostMiddleware in docs (#1138)
authorAri Bajo <arimbr@gmail.com>
Fri, 27 Mar 2020 16:27:57 +0000 (17:27 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 16:27:57 +0000 (17:27 +0100)
docs/en/docs/advanced/middleware.md

index 4db8af275c4e622689d5eedb34ee92d8ed38bea8..6e28940c105440517d8e571f8a562fe535c1e84c 100644 (file)
@@ -78,8 +78,8 @@ Handles GZip responses for any request that includes `"gzip"` in the `Accept-Enc
 
 The middleware will handle both standard and streaming responses.
 
-```Python hl_lines="2  6 7 8"
-{!../../../docs_src/advanced_middleware/tutorial002.py!}
+```Python hl_lines="2  6"
+{!../../../docs_src/advanced_middleware/tutorial003.py!}
 ```
 
 The following arguments are supported: