mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Merge branch 'rpc-daemon-raw-auth' of https://github.com/lalanza808/monero-python into lalanza808-rpc-daemon-raw-auth
This commit is contained in:
commit
c197be0a21
1 changed files with 2 additions and 1 deletions
|
@ -76,8 +76,9 @@ class JSONRPCDaemon(object):
|
|||
_log.debug(u"Request: {path}\nData: {data}".format(
|
||||
path=path,
|
||||
data=json.dumps(data, indent=2, sort_keys=True)))
|
||||
auth = requests.auth.HTTPDigestAuth(self.user, self.password)
|
||||
rsp = requests.post(
|
||||
self.url + path, headers=hdr, data=json.dumps(data),
|
||||
self.url + path, headers=hdr, data=json.dumps(data), auth=auth,
|
||||
timeout=self.timeout, verify=self.verify_ssl_certs)
|
||||
if rsp.status_code != 200:
|
||||
raise RPCError("Invalid HTTP status {code} for path {path}.".format(
|
||||
|
|
Loading…
Reference in a new issue