Skip to content

Commit 9545c74

Browse files
authored
Merge pull request #3687 from kliushnichenko/fix/empty-mono
fix empty mono
2 parents 05c1ecf + c3cb43a commit 9545c74

File tree

1 file changed

+1
-1
lines changed
  • modules/jooby-reactor/src/main/java/io/jooby/reactor

1 file changed

+1
-1
lines changed

modules/jooby-reactor/src/main/java/io/jooby/reactor/Reactor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public Route.Handler apply(@NonNull Route.Handler next) {
5555
// Return context to mark as handled
5656
return ctx;
5757
} else if (result instanceof Mono mono) {
58-
mono.subscribe(
58+
mono.defaultIfEmpty(ctx.getResponseCode()).subscribe(
5959
value -> {
6060
// fire after:
6161
after(ctx, value, null);

0 commit comments

Comments
 (0)