git: openjdk/mobile: 8232625: HttpClient redirect policy should be more conservative

duke duke at openjdk.java.net
Wed Oct 23 15:08:28 UTC 2019


Changeset: b3477399
Author:    Daniel Fuchs <dfuchs at openjdk.org>
Date:      2019-10-23 15:54:39 +0000
URL:       https://git.openjdk.java.net/mobile/commit/b3477399

8232625: HttpClient redirect policy should be more conservative

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 mobile-changes mailing list