We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05c1ecf + c3cb43a commit 9545c74Copy full SHA for 9545c74
modules/jooby-reactor/src/main/java/io/jooby/reactor/Reactor.java
@@ -55,7 +55,7 @@ public Route.Handler apply(@NonNull Route.Handler next) {
55
// Return context to mark as handled
56
return ctx;
57
} else if (result instanceof Mono mono) {
58
- mono.subscribe(
+ mono.defaultIfEmpty(ctx.getResponseCode()).subscribe(
59
value -> {
60
// fire after:
61
after(ctx, value, null);
0 commit comments