Skip to content

Commit 0da1f10

Browse files
committed
Ensure onStatusReceived() is invoked when there is no realm.
1 parent 6e32eef commit 0da1f10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/statushandler/AuthorizationHandler.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public boolean handleStatus(final HttpResponsePacket responsePacket,
5858
}
5959
if (realm == null) {
6060
httpTransactionContext.setInvocationStatus(STOP);
61+
if (httpTransactionContext.getHandler() != null) {
62+
try {
63+
httpTransactionContext.getHandler().onStatusReceived(
64+
httpTransactionContext.getResponseStatus());
65+
} catch (Exception e) {
66+
httpTransactionContext.abort(e);
67+
}
68+
}
6169
return true;
6270
}
6371

0 commit comments

Comments
 (0)