diff options
author | Matthias Runge <mrunge@redhat.com> | 2020-07-21 10:07:02 +0200 |
---|---|---|
committer | Matthias Runge <mrunge@redhat.com> | 2020-07-21 18:52:25 +0200 |
commit | 4c859ad4dfe7a704fc596c041de5b67db7b065ce (patch) | |
tree | be794469ef5cbb86e460d8bc4e828819338f2081 /ceilometer | |
parent | 1c9f4ac6239af71353484ad9aa30caa367e2a393 (diff) | |
download | ceilometer-4c859ad4dfe7a704fc596c041de5b67db7b065ce.tar.gz |
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
Diffstat (limited to 'ceilometer')
-rw-r--r-- | ceilometer/publisher/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometer/publisher/http.py b/ceilometer/publisher/http.py index 3e637e67..e5d3bec2 100644 --- a/ceilometer/publisher/http.py +++ b/ceilometer/publisher/http.py @@ -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)) |