diff --git a/common/httpx/response.go b/common/httpx/response.go index 8966ce5..8f31a1e 100644 --- a/common/httpx/response.go +++ b/common/httpx/response.go @@ -30,7 +30,7 @@ func (r *Response) GetHeader(name string) string { func (r *Response) GetHeaderPart(name string, sep string) string { v, ok := r.Headers[name] if ok && len(v) > 0 { - tokens := strings.SplitN(strings.Join(v, " "), sep, 1) + tokens := strings.Split(strings.Join(v, " "), sep) return tokens[0] }