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,
: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):
: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)