Skip to content

POST body is dropped on following 301 redirect #1042

Description

@yuppie-flu

Environment:

async-http-client 1.9.31
netty 3.10.4.Final
AsyncHttpClientConfig.Builder().setFollowRedirect(true)

Preconditions

"url-original" accepts POST and redirect to "url-redirected" with HTTP 301 status

Steps:

Send request with asyncHttpClient.preparePost("url-original").setBody("not empty body").execute().get()

Expected

Request redirected to "url-redirected" with original body

Actual

Request redirected to "url-redirected" with empty body

Notes

1.8.14 version works as expected for this case

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions