]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Add missing import on `HTTPSRedirectMiddleware` docs section (#1873)
authorTheOnlyWayUp <76237496+TheOnlyWayUp@users.noreply.github.com>
Tue, 27 Sep 2022 17:30:06 +0000 (13:30 -0400)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2022 17:30:06 +0000 (19:30 +0200)
docs/middleware.md

index e42ada493364989c92cf29a21e96ac40e32859cd..bf54c2109c5c0467ad427a303d57e39a8f39b6b3 100644 (file)
@@ -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 = ...