Skip to content

Commit

Permalink
Merge pull request quarkusio#13060 from sberyozkin/http_sec_recorder_…
Browse files Browse the repository at this point in the history
…response_end

Do not end the response if sendChallenge has already done it
  • Loading branch information
stuartwdouglas authored Nov 2, 2020
2 parents fb686b3 + d0d87dc commit 366c96b
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 366c96b

Please sign in to comment.