Update scan.go

This commit is contained in:
公明 2025-02-27 16:26:18 +08:00 committed by GitHub
parent 35ab0aa1a7
commit 222193641d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
scan.go
View File

@ -123,7 +123,15 @@ func sendHTTPAndKimi(r *RequestResponseLog) (result string, respA string, respB
return "", "", "", err
}
req.Header = r.Request.Header
req.Header.Set("Cookie", config.GetConfig().Cookie2)
// 增加其他头 2025 02 27
if config.GetConfig().Headers2 != nil {
for key, value := range config.GetConfig().Headers2 {
req.Header.Set(key, value)
}
}
// 2025 02 27 end
// req.Header.Set("Cookie", config.GetConfig().Cookie2)
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {