Skip to content

Commit 7978d71

Browse files
committed
Corrected invalid comment in DefaultRedirectStrategy (no functional changes)
1 parent b3676f3 commit 7978d71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public boolean isRedirectAllowed(
9393
final HttpRequest redirect,
9494
final HttpContext context) {
9595

96-
// If authority (host + effective port) differs, strip sensitive headers
96+
// If authority (host + effective port) differs, disallow automatic redirect
9797
if (!isSameAuthority(currentTarget, newTarget)) {
9898
for (final Iterator<Header> it = redirect.headerIterator(); it.hasNext(); ) {
9999
final Header header = it.next();

0 commit comments

Comments
 (0)