Allow for query string in rpc url

This commit is contained in:
nolash 2022-01-04 17:10:19 +00:00
parent 7deeee2c84
commit 99cac32ced
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 5 additions and 5 deletions

View File

@ -133,6 +133,9 @@ class RPCConnection:
self.location = os.path.join('{}://'.format(url_parsed.scheme), location) self.location = os.path.join('{}://'.format(url_parsed.scheme), location)
self.location = urljoin(self.location, url_parsed.path) 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)) logg.debug('parsed url {} to location {}'.format(url, self.location))

View File

@ -1,12 +1,9 @@
; Config::Simple 4.59
; Mon Nov 8 05:19:17 2021
[metadata] [metadata]
name=chainlib name=chainlib
license=WTFPL2 license=WTFPL2
author_email=dev@holbrook.no author_email=dev@holbrook.no
description=Generic blockchain access library and tooling description=Generic blockchain access library and tooling
version=0.0.14 version=0.0.15
url=https://gitlab.com/chaintools/chainlib url=https://gitlab.com/chaintools/chainlib
author=Louis Holbrook author=Louis Holbrook