Skip to content

Digest Auth - missing Post request payload #1009

@12bchl

Description

@12bchl

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions