From: TheOnlyWayUp <76237496+TheOnlyWayUp@users.noreply.github.com> Date: Tue, 27 Sep 2022 17:30:06 +0000 (-0400) Subject: Add missing import on `HTTPSRedirectMiddleware` docs section (#1873) X-Git-Tag: 0.22.0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=711d75a183549e17f2e96779c6396bb65d3e3bb8;p=thirdparty%2Fstarlette.git Add missing import on `HTTPSRedirectMiddleware` docs section (#1873) --- diff --git a/docs/middleware.md b/docs/middleware.md index e42ada49..bf54c210 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -114,6 +114,7 @@ requests to `http` or `ws` will be redirected to the secure scheme instead. ```python from starlette.applications import Starlette +from starlette.middleware import Middleware from starlette.middleware.httpsredirect import HTTPSRedirectMiddleware routes = ...