Skip to content

Commit a07090b

Browse files
committed
Update documentation
1 parent 2c671c2 commit a07090b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/jodd/http/HttpResponse.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)