-
-
Notifications
You must be signed in to change notification settings - Fork 771
Open
Labels
Description
Difference in behaviour between resty v2 -> v3
Post request body is no longer transmitted for existing sessions
cl := resty.New()
cl.SetBaseURL(baseURL)
cl.SetDigestAuth(username, password)
r, err = cl.R().Get("/")
r, err = cl.R().SetFormData(map[string]string{"A": "B"}).Post("/somepath")
The body (encoding is irrelevant) will be present in v2, or if we comment out first GET request it would be visible in v3.
For existing sessions, using digest auth, POST request body is missing.
Verified with wireshark on client machine, no redirection issues.
Oddly I get the same issue with curl v7.88.1
Client OS: 6.1.0-31-amd64