Skip to content

Commit b3a7dff

Browse files
authored
Update README.md
1 parent 2ce08b8 commit b3a7dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public class WidgetController$Route implements HttpService {
293293
int id = asInt(pathParams.first("id").get());
294294
var result = controller.getById(id);
295295
res.headers().contentType(io.helidon.common.http.HttpMediaType.APPLICATION_JSON);
296-
widgetJsonType.toJson(result, res.outputStream());
296+
widgetJsonType.toJson(result, JsonOutput.of(res));
297297
}
298298

299299
private void _getAll(ServerRequest req, ServerResponse res) {

0 commit comments

Comments
 (0)