Revised the code in the make_authorization method of the test client.

This commit is contained in:
依瑪貓 2022-11-29 21:53:16 +08:00
parent 9616fb3ddc
commit 7db38c7eae

View File

@ -66,8 +66,7 @@ class Client(WerkzeugClient):
:return: The request authorization.
"""
qop: t.Optional[t.Literal["auth", "auth-int"]] = None
if www_authenticate.qop is not None:
if "auth" in www_authenticate.qop:
if www_authenticate.qop is not None and "auth" in www_authenticate.qop:
qop = "auth"
cnonce: t.Optional[str] = None