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 authored and aminalaee committed Feb 13, 2023
1 parent d53d0fd commit c0d204a
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 c0d204a

Please sign in to comment.