Fix for
split header string once with SplitN 2
@@ -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
