Browse Source

🎨 Auto format

pull/14711/head
pre-commit-ci-lite[bot] 6 months ago
committed by GitHub
parent
commit
dc2e7effb1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/security/http.py

2
fastapi/security/http.py

@ -118,11 +118,9 @@ class HTTPBasic(HTTPBase):
self.realm = realm # keep for OpenAPI compatibility
self.auto_error = auto_error
def make_authenticate_headers(self) -> dict[str, str]:
return {"WWW-Authenticate": "Basic"}
async def __call__( # type: ignore
self, request: Request
) -> Optional[HTTPBasicCredentials]:

Loading…
Cancel
Save