[CronetDataSource] Support keeping the POST method and body for 302
Currently when a HTTP POST request receives a 302, CronetDataSource will change the request method from POST to GET for the redirected request, and drop the post body. This aligns with the behaviours of many user agents, but our use case would like to keep the POST method and the post body. org.chromium.net.UrlRequest.followRedirect also changes POST to GET for 302, so should be avoided here. PiperOrigin-RevId: 381233011
Showing
with
232 additions
and
36 deletions
Please
register
or
sign in
to comment