diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java index 3eafc73f2e42d..242673cf43159 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java @@ -72,7 +72,9 @@ public void accept(RoutingContext routingContext, Throwable throwable) { authenticator.sendChallenge(event).subscribe().with(new Consumer() { @Override public void accept(Boolean aBoolean) { - event.response().end(); + if (!event.response().ended()) { + event.response().end(); + } } }, new Consumer() { @Override