From f6dee31d0ab513edb7fb4f000ca2adef07dbd4d5 Mon Sep 17 00:00:00 2001 From: Jose Idar Date: Mon, 28 Mar 2016 18:05:56 -0500 Subject: [PATCH] Fixed split() bug in http plugin logging Change-Id: I01432b9eaba65fcbba8cf547b932b1e81aefe1d5 --- cafe/plugins/http/cafe/engine/http/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cafe/plugins/http/cafe/engine/http/client.py b/cafe/plugins/http/cafe/engine/http/client.py index c17606a..12044d2 100644 --- a/cafe/plugins/http/cafe/engine/http/client.py +++ b/cafe/plugins/http/cafe/engine/http/client.py @@ -90,7 +90,7 @@ def _log_transaction(log, level=cclogging.logging.DEBUG): if 'params' in dir(response.request): request_params = response.request.params elif '?' in request_url: - request_url, request_params = request_url.split('?') + request_url, request_params = request_url.split('?', 1) logline = ''.join([ '\n{0}\nREQUEST SENT\n{0}\n'.format('-' * 12),