# HG changeset patch # User chegar # Date 1520432457 0 # Node ID df3f97c19c1d84c36eb767c6867d68f4e5a7c36d # Parent cc67f25159cb146d3814cc3b32ef19e076e51d57 http-client-branch: minor spec clarification for redirected response's request URI diff -r cc67f25159cb -r df3f97c19c1d src/java.net.http/share/classes/java/net/http/HttpResponse.java --- a/src/java.net.http/share/classes/java/net/http/HttpResponse.java Wed Mar 07 14:11:00 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpResponse.java Wed Mar 07 14:20:57 2018 +0000 @@ -97,8 +97,11 @@ /** * Returns the {@link HttpRequest} corresponding to this response. * - *

This may not be the original request provided by the caller, - * for example, if that request was redirected. + *

The returned {@code HttpRequest} may not be the initiating request + * provided when {@linkplain HttpClient#send(HttpRequest, BodyHandler) + * sending}. For example, if the initiating request was redirected, then the + * request returned by this method will have the redirected URI, which will + * be different from the initiating request URI. * * @see #previousResponse() *