File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
http-generator-nima/src/main/java/io/avaje/http/generator/helidon/nima Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ private void writeContextReturn() {
132132 }
133133
134134 final var produces = producesOp .orElse (MediaType .APPLICATION_JSON );
135- final var contentTypeString = " res.headers().contentType(io.helidon.common.http. HttpMediaType." ;
135+ final var contentTypeString = " res.headers().contentType(HttpMediaType." ;
136136 switch (produces .toLowerCase ()) {
137137 case MediaType .APPLICATION_JSON -> writer .append (contentTypeString + "APPLICATION_JSON);" ).eol ();
138138 case MediaType .TEXT_HTML -> writer .append (contentTypeString + "TEXT_HTML);" ).eol ();
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class ControllerWriter extends BaseControllerWriter {
2626 reader .addImportType ("io.avaje.jsonb.Jsonb" );
2727 reader .addImportType ("io.avaje.jsonb.JsonType" );
2828 }
29+ reader .addImportType ("io.helidon.common.http.HttpMediaType" );
2930 reader .addImportType ("io.helidon.common.parameters.Parameters" );
3031 reader .addImportType ("io.helidon.nima.webserver.http.HttpRules" );
3132 reader .addImportType ("io.helidon.nima.webserver.http.HttpRouting" );
You can’t perform that action at this time.
0 commit comments