diff --git a/pkg/executer/executer_http.go b/pkg/executer/executer_http.go index a4008f5b..6fa591dc 100644 --- a/pkg/executer/executer_http.go +++ b/pkg/executer/executer_http.go @@ -369,7 +369,7 @@ func makeCheckRedirectFunc(followRedirects bool, maxRedirects int) checkRedirect func (e *HTTPExecuter) setCustomHeaders(r *requests.HTTPRequest) { for _, customHeader := range e.customHeaders { // This should be pre-computed somewhere and done only once - tokens := strings.Split(customHeader, ":") + tokens := strings.SplitN(customHeader, ":", 2) // if it's an invalid header skip it if len(tokens) < two { continue