Skip to content

Commit a0788dc

Browse files
committed
Ensure onStatusReceived() is invoked when there is no realm.
1 parent d0bc3fc commit a0788dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,13 @@ public boolean handleStatus(final HttpResponsePacket responsePacket,
14751475
}
14761476
if (realm == null) {
14771477
httpTransactionContext.invocationStatus = InvocationStatus.STOP;
1478+
if (httpTransactionContext.handler != null) {
1479+
try {
1480+
httpTransactionContext.handler.onStatusReceived(httpTransactionContext.responseStatus);
1481+
} catch (Exception e) {
1482+
httpTransactionContext.abort(e);
1483+
}
1484+
}
14781485
return true;
14791486
}
14801487

0 commit comments

Comments
 (0)