mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 11:36:56 +08:00
bugfix: HttpNtlmAuth should be lower case
This commit is contained in:
+2
-2
@@ -103,9 +103,9 @@ class HttpSession(requests.Session):
|
|||||||
request_meta["method"] = method
|
request_meta["method"] = method
|
||||||
request_meta["start_time"] = time.time()
|
request_meta["start_time"] = time.time()
|
||||||
|
|
||||||
if "HttpNtlmAuth" in kwargs:
|
if "httpntlmauth" in kwargs:
|
||||||
from requests_ntlm import HttpNtlmAuth
|
from requests_ntlm import HttpNtlmAuth
|
||||||
auth_account = kwargs.pop("HttpNtlmAuth")
|
auth_account = kwargs.pop("httpntlmauth")
|
||||||
kwargs["auth"] = HttpNtlmAuth(
|
kwargs["auth"] = HttpNtlmAuth(
|
||||||
auth_account["username"], auth_account["password"])
|
auth_account["username"], auth_account["password"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user