hg: jdk/sandbox: 8232625: HttpClient redirect policy should be more conservative
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Wed Oct 23 15:15:16 UTC 2019
Changeset: 2b13d126a2d8
Author: dfuchs
Date: 2019-10-23 15:54 +0100
URL: https://hg.openjdk.java.net/jdk/sandbox/rev/2b13d126a2d8
8232625: HttpClient redirect policy should be more conservative
Summary: When enabled, HttpClient redirect is fixed to drop the body when the request method is changed, and to relay any redirection code it does not understand to the caller.
Reviewed-by: chegar
! src/java.net.http/share/classes/jdk/internal/net/http/HttpRequestImpl.java
! src/java.net.http/share/classes/jdk/internal/net/http/RedirectFilter.java
+ test/jdk/java/net/httpclient/HttpRedirectTest.java
! test/jdk/java/net/httpclient/http2/RedirectTest.java
! test/jdk/java/net/httpclient/http2/server/Http2RedirectHandler.java
More information about the jdk-sandbox-changes
mailing list