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:
Matthias Runge 2020-07-21 10:07:02 +02:00
parent be8ba137bc
commit af90111c14
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class HttpPublisher(publisher.ConfigPublisherBase):
scheme,
netloc,
parsed_url.path,
urlparse.urlencode(params),
urlparse.urlencode(params, doseq=True),
parsed_url.fragment])
self.session.mount(self.target, adapters.HTTPAdapter(**kwargs))