From: Ari Bajo Date: Fri, 27 Mar 2020 16:27:57 +0000 (+0100) Subject: :bug: Fix GZipMiddleware code block linking to TrustedHostMiddleware in docs (#1138) X-Git-Tag: 0.53.0~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=651ced68bf68f71152f4a61eebc65ccd10d3ca46;p=thirdparty%2Ffastapi%2Ffastapi.git :bug: Fix GZipMiddleware code block linking to TrustedHostMiddleware in docs (#1138) --- diff --git a/docs/en/docs/advanced/middleware.md b/docs/en/docs/advanced/middleware.md index 4db8af275c..6e28940c10 100644 --- a/docs/en/docs/advanced/middleware.md +++ b/docs/en/docs/advanced/middleware.md @@ -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: