This commit is contained in:
Mzack9999 2020-07-31 00:14:46 +02:00
parent e5a7e350ba
commit 11d30ba625

View File

@ -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]
}