Remove [ and ] around parameter values in http url
Without this patch, using a publisher like
- http://host.com/?a=b&c=d
leads to calling a http post to
http://host.com/?a=['b']&c=['d']
URLs without additional parameters are not affected.
Change-Id: I7c4f03b5d4412ec2844cb24d32ce575442c9fd3c
(cherry picked from commit 4c859ad4df
)
This commit is contained in:
parent
be8ba137bc
commit
af90111c14
|
@ -140,7 +140,7 @@ class HttpPublisher(publisher.ConfigPublisherBase):
|
||||||
scheme,
|
scheme,
|
||||||
netloc,
|
netloc,
|
||||||
parsed_url.path,
|
parsed_url.path,
|
||||||
urlparse.urlencode(params),
|
urlparse.urlencode(params, doseq=True),
|
||||||
parsed_url.fragment])
|
parsed_url.fragment])
|
||||||
|
|
||||||
self.session.mount(self.target, adapters.HTTPAdapter(**kwargs))
|
self.session.mount(self.target, adapters.HTTPAdapter(**kwargs))
|
||||||
|
|
Loading…
Reference in New Issue