From 2847146e3ce5090f0a5ab8d8cc5a9eb8a9082a57 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 1 Apr 2019 15:32:19 -0600 Subject: [PATCH] README: fix opportunistic_auth example The HTTPSPNEGOAuth constructor uses a keyword argument named "opportunistic_auth", not "opportunistic_authentication". Fix the example in the README to reflect this. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0d3e37d..8a61fb8 100644 --- a/README.rst +++ b/README.rst @@ -101,7 +101,7 @@ behavior can be altered by setting ``opportunistic_auth=True``: >>> import requests >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED - >>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_authentication=True) + >>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_auth=True) >>> r = requests.get("https://windows.example.org/wsman", auth=gssapi_auth) ...