diff --git a/heatclient/common/http.py b/heatclient/common/http.py index 1659f71d..2239908f 100644 --- a/heatclient/common/http.py +++ b/heatclient/common/http.py @@ -95,7 +95,7 @@ class HTTPClient(object): return strutils.safe_decode(name), strutils.safe_decode(value) def log_curl_request(self, method, url, kwargs): - curl = ['curl -i -X %s' % method] + curl = ['curl -g -i -X %s' % method] for (key, value) in kwargs['headers'].items(): header = '-H \'%s: %s\'' % self.safe_header(key, value) diff --git a/heatclient/tests/test_common_http.py b/heatclient/tests/test_common_http.py index d7743ff8..55a14297 100644 --- a/heatclient/tests/test_common_http.py +++ b/heatclient/tests/test_common_http.py @@ -581,7 +581,7 @@ class HttpClientTest(testtools.TestCase): headers = {'key': 'value'} mock_logging_debug = logging.Logger.debug( - "curl -i -X GET -H 'key: value' --key TEST_KEY " + "curl -g -i -X GET -H 'key: value' --key TEST_KEY " "--cert TEST_CERT --cacert TEST_CA " "-k -d 'text' http://foo/bar" ) @@ -672,7 +672,7 @@ class HttpClientTest(testtools.TestCase): kwargs = {'headers': {'Key': b'foo\xe3\x8a\x8e'}} mock_logging_debug = logging.Logger.debug( - u"curl -i -X GET -H 'Key: foo㊎' http://somewhere" + u"curl -g -i -X GET -H 'Key: foo㊎' http://somewhere" ) mock_logging_debug.AndReturn(None)