Browse Source

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)
changes/34/742834/1
Matthias Runge 3 weeks ago
parent
commit
af90111c14
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ceilometer/publisher/http.py

+ 1
- 1
ceilometer/publisher/http.py 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))


Loading…
Cancel
Save