Skip to content

Commit 95f19f7

Browse files
committed
fix bug: 使用get请求时,auth需要转化一下
1 parent e548283 commit 95f19f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiniu/http.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _session_get(url, params, auth):
9696
_init()
9797
try:
9898
r = _session.get(
99-
url, params=params, auth=auth,
99+
url, params=params, auth=qiniu.auth.RequestsAuth(auth) if auth is not None else None,
100100
timeout=config.get_default('connection_timeout'))
101101
except Exception as e:
102102
return None, ResponseInfo(None, e)

0 commit comments

Comments
 (0)