diff --git a/cf-clearance-scraper.go b/cf-clearance-scraper.go index 33718d5..d5d3042 100644 --- a/cf-clearance-scraper.go +++ b/cf-clearance-scraper.go @@ -140,6 +140,9 @@ func TurnstileMaxToken(ccsUrl string, requestUrl string) (string, error) { } func RequestWithWAFSession(method string, URL string, wafSession Session, options *cycletls.Options) (cycletls.Response, error) { + if options == nil { + options = &cycletls.Options{} + } headers := map[string]string{} cookies := []string{} for _, cookie := range wafSession.Cookies {