Skip to content

Commit

Permalink
fix bug: 使用get请求时,auth需要转化一下
Browse files Browse the repository at this point in the history
  • Loading branch information
ramwin committed Jul 8, 2021
1 parent e548283 commit 95f19f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiniu/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _session_get(url, params, auth):
_init()
try:
r = _session.get(
url, params=params, auth=auth,
url, params=params, auth=qiniu.auth.RequestsAuth(auth) if auth is not None else None,
timeout=config.get_default('connection_timeout'))
except Exception as e:
return None, ResponseInfo(None, e)
Expand Down

0 comments on commit 95f19f7

Please sign in to comment.