mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
mcp: don't forget to flush
This commit is contained in:
@@ -58,6 +58,7 @@ pub fn sendResponse(self: *Self, response: anytype) !void {
|
||||
try std.json.Stringify.value(response, .{ .emit_null_optional_fields = false }, &aw.writer);
|
||||
try aw.writer.writeByte('\n');
|
||||
try self.writer.writeAll(aw.writer.buffered());
|
||||
try self.writer.flush();
|
||||
}
|
||||
|
||||
pub fn sendResult(self: *Self, id: std.json.Value, result: anytype) !void {
|
||||
|
||||
Reference in New Issue
Block a user