Browse Source

🎨 Auto format

pull/15356/head
pre-commit-ci-lite[bot] 1 month ago
committed by GitHub
parent
commit
6071d250d3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      fastapi/routing.py

4
fastapi/routing.py

@ -1194,7 +1194,9 @@ class APIRoute(routing.Route):
methods = effective_context.methods
if methods:
method = scope["method"]
method_is_allowed = method in methods or self._is_head_for_get(scope, methods)
method_is_allowed = method in methods or self._is_head_for_get(
scope, methods
)
if not method_is_allowed:
headers = {"Allow": ", ".join(self._allow_methods(methods))}
if "app" in scope:

Loading…
Cancel
Save