From cf65c82e319c39056c60ed4671e1d35890cf54d7 Mon Sep 17 00:00:00 2001 From: ruben-garciad Date: Fri, 9 Feb 2024 14:21:34 +0100 Subject: [PATCH] change where neutralize is applied --- steps/http/session.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/steps/http/session.go b/steps/http/session.go index e293250..ca2838b 100755 --- a/steps/http/session.go +++ b/steps/http/session.go @@ -94,9 +94,7 @@ func (s *Session) URL() (*url.URL, error) { for key, values := range s.Request.QueryParams { for _, value := range values { if !params.Has(key) { - keyN := neutralize(key) - valueN := neutralize(value) - params.Add(keyN, valueN) + params.Add(key, value) } } } @@ -240,7 +238,7 @@ func (s *Session) SendHTTPRequest(ctx context.Context, method string) error { if s.Request.Headers != nil { hostHeaders, found := s.Request.Headers["Host"] if found && len(hostHeaders) > 0 { - req.Host = hostHeaders[0] + req.Host = neutralize(hostHeaders[0]) } } req.Header = s.Request.Headers