Allow for query string in rpc url
This commit is contained in:
parent
7deeee2c84
commit
99cac32ced
@ -133,6 +133,9 @@ class RPCConnection:
|
||||
self.location = os.path.join('{}://'.format(url_parsed.scheme), location)
|
||||
self.location = urljoin(self.location, url_parsed.path)
|
||||
|
||||
if url_parsed.query != '':
|
||||
self.location = urljoin(self.location, '?' + url_parsed.query)
|
||||
|
||||
logg.debug('parsed url {} to location {}'.format(url, self.location))
|
||||
|
||||
|
||||
@ -319,7 +322,7 @@ class JSONRPCHTTPConnection(HTTPConnection):
|
||||
)
|
||||
ho = build_opener(handler)
|
||||
install_opener(ho)
|
||||
|
||||
|
||||
try:
|
||||
r = urlopen(
|
||||
req,
|
||||
|
@ -1,12 +1,9 @@
|
||||
; Config::Simple 4.59
|
||||
; Mon Nov 8 05:19:17 2021
|
||||
|
||||
[metadata]
|
||||
name=chainlib
|
||||
license=WTFPL2
|
||||
author_email=dev@holbrook.no
|
||||
description=Generic blockchain access library and tooling
|
||||
version=0.0.14
|
||||
version=0.0.15
|
||||
url=https://gitlab.com/chaintools/chainlib
|
||||
author=Louis Holbrook
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user