We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e548283 commit 95f19f7Copy full SHA for 95f19f7
1 file changed
qiniu/http.py
@@ -96,7 +96,7 @@ def _session_get(url, params, auth):
96
_init()
97
try:
98
r = _session.get(
99
- url, params=params, auth=auth,
+ url, params=params, auth=qiniu.auth.RequestsAuth(auth) if auth is not None else None,
100
timeout=config.get_default('connection_timeout'))
101
except Exception as e:
102
return None, ResponseInfo(None, e)
0 commit comments