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.
1 parent 13e42b8 commit d0c74c8Copy full SHA for d0c74c8
http-generator-javalin/src/main/java/io/avaje/http/generator/javalin/ControllerMethodWriter.java
@@ -100,6 +100,13 @@ void write(boolean requestScoped) {
100
}
101
102
private void writeContextReturn() {
103
+
104
+ if (instrumentContext) {
105
+ writer
106
+ .append(" if (ctx.resultInputStream() != null || ctx.res().isCommitted()) return;")
107
+ .eol();
108
+ }
109
110
// Support for CompletableFuture's.
111
final UType type = UType.parse(method.returnType());
112
if ("java.util.concurrent.CompletableFuture".equals(type.mainType())) {
0 commit comments