Skip to content

Commit

Permalink
Add missing import on HTTPSRedirectMiddleware docs section (#1873)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyWayUp committed Sep 27, 2022
1 parent 0b8a775 commit 711d75a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ...
Expand Down

0 comments on commit 711d75a

Please sign in to comment.