mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-11-28 22:01:28 +03:00
f
This commit is contained in:
parent
e5a7e350ba
commit
11d30ba625
@ -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]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user