This commit is contained in:
Nite07 2024-12-03 23:50:17 +08:00
parent 1ecdcb99a3
commit 60608c26cf

View File

@ -139,7 +139,7 @@ func TurnstileMaxToken(ccsUrl string, requestUrl string) (string, error) {
return ccsResp.Token, nil return ccsResp.Token, nil
} }
func RequestWithWAFSession(method string, URL string, wafSession Session, options cycletls.Options) (cycletls.Response, error) { func RequestWithWAFSession(method string, URL string, wafSession Session, options *cycletls.Options) (cycletls.Response, error) {
headers := map[string]string{} headers := map[string]string{}
cookies := []string{} cookies := []string{}
for _, cookie := range wafSession.Cookies { for _, cookie := range wafSession.Cookies {
@ -157,5 +157,5 @@ func RequestWithWAFSession(method string, URL string, wafSession Session, option
options.Headers[key] = value options.Headers[key] = value
} }
return cycletlsClient.Do(URL, options, method) return cycletlsClient.Do(URL, *options, method)
} }