basic HTTP authentication used to request the server
This commit is contained in:
parent
dc12665fbb
commit
905ae5234f
|
@ -388,7 +388,8 @@ class PBase(object):
|
|||
logger.debug("SENT COOKIEs: %s" % (_kwargs["cookies"],))
|
||||
|
||||
try:
|
||||
r = requests.request(method, url, **_kwargs)
|
||||
r = requests.request(method, url, auth=(self.client_id, self.client_secret),
|
||||
**_kwargs)
|
||||
except Exception as err:
|
||||
logger.error(
|
||||
"http_request failed: %s, url: %s, htargs: %s, method: %s" % (
|
||||
|
|
Reference in New Issue