Merge "Fix log_http_request function in http module"

This commit is contained in:
Zuul 2018-07-05 05:45:19 +00:00 committed by Gerrit Code Review
commit 6ddca4e3c3
1 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,10 @@ class HTTPClient(object):
if 'data' in kwargs:
curl.append('-d \'%s\'' % kwargs['data'])
curl.append('%s%s' % (self.endpoint, url))
if not parse.urlparse(url).netloc:
url = self.endpoint + url
curl.append(url)
LOG.debug(' '.join(curl))
@staticmethod