File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ public HttpResponse statusPhrase(final String statusPhrase) {
8484 }
8585
8686 /**
87- * Parses 'location' header to return the next location or returns {@code null} if location not specified.
88- * Specification (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30">rfc2616</a>)
89- * says that only absolute path must be provided, however, this does not
90- * happens in the real world. There a <a href="https ://tools.ietf .org/html/rfc7231#section-7.1.2">proposal </a>
91- * that allows server name etc to be omitted .
87+ * Parses the 'location' header and returns an absolute URL for the provided path. Returns {@code null}
88+ * if no location was specified or throws {@code HttpException} if it was impossible to assemble a valid URL.
89+ * <p>
90+ * <a href="http ://www.w3 .org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30">RFC 2616 </a> still required an absolute
91+ * URL, whereas RFC 9110 introduced the support for relative paths .
9292 */
9393 public String location () {
9494 String location = header ("location" );
You can’t perform that action at this time.
0 commit comments