Browse Source

Fix type in the descr of `not_authenticated_status_code` for HTTPDigest

pull/13786/head
Yurii Motov 1 month ago
parent
commit
a9fcb9aada
  1. 4
      fastapi/security/http.py

4
fastapi/security/http.py

@ -444,8 +444,8 @@ class HTTPDigest(HTTPBase):
Literal[401, 403], Literal[401, 403],
Doc( Doc(
""" """
By default, if the HTTP Bearer token is not provided and `auto_error` By default, if the HTTP Digest is not provided and `auto_error`
is set to `True`, `HTTPBearer` will automatically raise an is set to `True`, `HTTPDigest` will automatically raise an
`HTTPException` with the status code `401`. `HTTPException` with the status code `401`.
If your client relies on the old (incorrect) behavior and expects the If your client relies on the old (incorrect) behavior and expects the

Loading…
Cancel
Save