Skip to content

Commit 6b54f74

Browse files
author
oleksiys
committed
[1.9.x] + don't check if redirect url is the same as original one, because it's not sufficient check to decide whether or not we can redirect... so we better rely on max redirect counter.
1 parent e86bd61 commit 6b54f74

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/com/ning/http/client/providers/grizzly/AhcEventFilter.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -723,19 +723,6 @@ public boolean handleStatus(final HttpResponsePacket responsePacket,
723723
final Uri redirectUri = Uri.create(origUri, redirectURL);
724724
httpTransactionContext.lastRedirectUri = redirectUri;
725725

726-
if (redirectUri.equals(origUri)) {
727-
httpTransactionContext.statusHandler = null;
728-
httpTransactionContext.invocationStatus = InvocationStatus.CONTINUE;
729-
try {
730-
httpTransactionContext.getAsyncHandler().onStatusReceived(
731-
httpTransactionContext.responseStatus);
732-
} catch (Exception e) {
733-
httpTransactionContext.abort(e);
734-
}
735-
736-
return true;
737-
}
738-
739726
final Request nextRequest = newRequest(httpTransactionContext,
740727
redirectUri, responsePacket,
741728
getRealm(httpTransactionContext),

0 commit comments

Comments
 (0)