fix
This commit is contained in:
parent
1ecdcb99a3
commit
60608c26cf
@ -139,7 +139,7 @@ func TurnstileMaxToken(ccsUrl string, requestUrl string) (string, error) {
|
||||
return ccsResp.Token, nil
|
||||
}
|
||||
|
||||
func RequestWithWAFSession(method string, URL string, wafSession Session, options cycletls.Options) (cycletls.Response, error) {
|
||||
func RequestWithWAFSession(method string, URL string, wafSession Session, options *cycletls.Options) (cycletls.Response, error) {
|
||||
headers := map[string]string{}
|
||||
cookies := []string{}
|
||||
for _, cookie := range wafSession.Cookies {
|
||||
@ -157,5 +157,5 @@ func RequestWithWAFSession(method string, URL string, wafSession Session, option
|
||||
options.Headers[key] = value
|
||||
}
|
||||
|
||||
return cycletlsClient.Do(URL, options, method)
|
||||
return cycletlsClient.Do(URL, *options, method)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user