Closed Golong-me closed 1 week ago
ok,it's update,you should write like here
url := "http://localhost:8001/login"
res, err := client.R().
SetDebug(true).
EnableGenerateCurlOnDebug().
Get(url)
if err != nil {
t.Error(err)
return
}
t.Log(res.Request.GenerateCurlCommand())
GenerateCurlCommand() is doesn't work in v2.15.3 in 2.14.0. it's work