Skip to content

Commit

Permalink
Do not end the response if sendChallenge has already done it
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Nov 2, 2020
1 parent dfecb89 commit d0d87dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public void accept(RoutingContext routingContext, Throwable throwable) {
authenticator.sendChallenge(event).subscribe().with(new Consumer<Boolean>() {
@Override
public void accept(Boolean aBoolean) {
event.response().end();
if (!event.response().ended()) {
event.response().end();
}
}
}, new Consumer<Throwable>() {
@Override
Expand Down

0 comments on commit d0d87dc

Please sign in to comment.