fixed incorrect response metadata filling (#160)
All checks were successful
coverage / build (push) Successful in 1m52s
test / test (push) Successful in 4m56s
sync / sync (push) Successful in 12s

This commit is contained in:
2025-10-08 17:33:26 +05:00
committed by GitHub
parent 55623618a5
commit 62bce65656
3 changed files with 96 additions and 4 deletions

View File

@@ -225,10 +225,10 @@ func applyCookies(r *http.Request, rawCookies []string) {
return
}
raw := strings.Join(rawCookies, "; ")
tmp := http.Request{Header: http.Header{}}
tmp.Header.Set("Cookie", raw)
for _, raw := range rawCookies {
tmp.Header.Add("Cookie", raw)
}
for _, c := range tmp.Cookies() {
r.AddCookie(c)