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) }