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 }