From 10e314ae7eff7705624fc050c8315acbd72824b1 Mon Sep 17 00:00:00 2001
From: nite07 <admin@nite07.com>
Date: Tue, 3 Dec 2024 23:54:27 +0800
Subject: [PATCH] fix

---
 cf-clearance-scraper.go | 3 +++
 1 file changed, 3 insertions(+)

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 {