From 60608c26cf6160ad42d4eb3edcd51e8a3ec929fc Mon Sep 17 00:00:00 2001 From: nite07 Date: Tue, 3 Dec 2024 23:50:17 +0800 Subject: [PATCH] fix --- cf-clearance-scraper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cf-clearance-scraper.go b/cf-clearance-scraper.go index 50d1262..33718d5 100644 --- a/cf-clearance-scraper.go +++ b/cf-clearance-scraper.go @@ -139,7 +139,7 @@ func TurnstileMaxToken(ccsUrl string, requestUrl string) (string, error) { 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{} cookies := []string{} for _, cookie := range wafSession.Cookies { @@ -157,5 +157,5 @@ func RequestWithWAFSession(method string, URL string, wafSession Session, option options.Headers[key] = value } - return cycletlsClient.Do(URL, options, method) + return cycletlsClient.Do(URL, *options, method) }