From 59ee0ad80efca70c6c9f5acfc01ea5533a4a3860 Mon Sep 17 00:00:00 2001 From: Casper Guldbech Nielsen Date: Wed, 9 Sep 2020 16:24:59 +0200 Subject: [PATCH] Ensure that same-name-headers doesnt get chunked into one line for more accurate matching Signed-off-by: Casper Guldbech Nielsen --- pkg/executer/http_utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/executer/http_utils.go b/pkg/executer/http_utils.go index 5c0416cd..ee30c6a2 100644 --- a/pkg/executer/http_utils.go +++ b/pkg/executer/http_utils.go @@ -37,7 +37,9 @@ func headersToString(headers http.Header) string { builder.WriteString(value) if i != len(values)-1 { - builder.WriteRune(',') + builder.WriteRune('\n') + builder.WriteString(header) + builder.WriteString(": ") } }