From 662e1dc6e580eb7d25eba65096217aeadedae8a9 Mon Sep 17 00:00:00 2001 From: nite07 Date: Tue, 3 Dec 2024 23:56:55 +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 d5d3042..7ede570 100644 --- a/cf-clearance-scraper.go +++ b/cf-clearance-scraper.go @@ -156,6 +156,9 @@ func RequestWithWAFSession(method string, URL string, wafSession Session, option options.Ja3 = "772,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,23-27-65037-43-51-45-16-11-13-17513-5-18-65281-0-10-35,25497-29-23-24,0" options.UserAgent = headers["user-agent"] + if options.Headers == nil { + options.Headers = map[string]string{} + } for key, value := range headers { options.Headers[key] = value }