pre-commit-ci-lite[bot]
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
2 deletions
-
fastapi/security/http.py
|
|
@ -118,10 +118,8 @@ class HTTPBasic(HTTPBase): |
|
|
self.realm = realm # keep for OpenAPI compatibility |
|
|
self.realm = realm # keep for OpenAPI compatibility |
|
|
self.auto_error = auto_error |
|
|
self.auto_error = auto_error |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_authenticate_headers(self) -> dict[str, str]: |
|
|
def make_authenticate_headers(self) -> dict[str, str]: |
|
|
return {"WWW-Authenticate": "Basic"} |
|
|
return {"WWW-Authenticate": "Basic"} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def __call__( # type: ignore |
|
|
async def __call__( # type: ignore |
|
|
self, request: Request |
|
|
self, request: Request |
|
|
|