Skip to content

Commit

Permalink
Ignore BaseHTTPMiddleware deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Oct 5, 2022
1 parent 7ddbc41 commit 55524ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ filterwarnings=
ignore: Use 'content=<...>' to upload raw bytes/text content.:DeprecationWarning
ignore: The `allow_redirects` argument is deprecated. Use `follow_redirects` instead.:DeprecationWarning
ignore: 'cgi' is deprecated and slated for removal in Python 3\.13:DeprecationWarning
ignore: The 'BaseHTTPMiddleware' is deprecated, and will be removed in version 2\.0\.0.*:DeprecationWarning

[coverage:run]
source_pkgs = starlette, tests
Expand Down
2 changes: 1 addition & 1 deletion starlette/middleware/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
T = typing.TypeVar("T")

warnings.warn(
"The 'BaseHTTPMiddleware' is deprecated, and will be removed in version 2.0.0."
"The 'BaseHTTPMiddleware' is deprecated, and will be removed in version 2.0.0. "
"Refer to https://www.starlette.io/middleware/#pure-asgi-middleware to learn "
"how to create middlewares.\nIf you need help, please create a discussion on: "
"https://github.com/encode/starlette/discussions.",
Expand Down

0 comments on commit 55524ff

Please sign in to comment.