This commit is contained in:
gospider
2024-09-12 17:47:48 +08:00
parent 86485a4596
commit 3c91730f83

View File

@@ -84,7 +84,7 @@ func ReadCookies(val any) (Cookies, error) {
case string:
return http.ParseCookie(cook)
case http.Header:
return nil, errors.New("cookies not support type")
return http.ParseCookie(cook.Get("Cookie"))
case []string:
return nil, errors.New("cookies not support type")
default: