Commit 4c587cf9 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Add / at the end of images path (plankton)

This bug was produced after changes in path4url, where a trailing / is now
always removed
parent 07c800e3
......@@ -193,7 +193,8 @@ class Client(object):
sendlog.info('perform a %s @ %s', method, self.base_url)
self.http_client.url = self.base_url
self.http_client.url = self.base_url + (
'/' if (self.base_url and self.base_url[-1]) != '/' else '')
self.http_client.path = quote(path.encode('utf8'))
r = self.http_client.perform_request(
method,
......
......@@ -52,7 +52,8 @@ class ImageClient(Client):
:returns: (list) id,name + full image info if detail
"""
path = path4url('images', 'detail') if detail else path4url('images/')
path = path4url('images', 'detail') if detail else (
path4url('images') + '/')
async_params = {}
if isinstance(filters, dict):
......@@ -108,7 +109,7 @@ class ImageClient(Client):
:param properties: (dict) image properties (X-Image-Meta-Property)
"""
path = path4url('images/')
path = path4url('images') + '/'
self.set_header('X-Image-Meta-Name', name)
self.set_header('X-Image-Meta-Location', location)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment