Skip to content

Commit c0f0630

Browse files
authored
Merge pull request #997 from lightpanda-io/fix_build
fix build
2 parents d4fc6f1 + 19dbb3a commit c0f0630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/ScriptManager.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ fn startCallback(transfer: *Http.Transfer) !void {
403403

404404
fn headerCallback(transfer: *Http.Transfer) !void {
405405
const script: *PendingScript = @ptrCast(@alignCast(transfer.ctx));
406-
script.headerCallback(transfer);
406+
try script.headerCallback(transfer);
407407
}
408408

409409
fn dataCallback(transfer: *Http.Transfer, data: []const u8) !void {
@@ -456,7 +456,7 @@ const PendingScript = struct {
456456
log.debug(.http, "script fetch start", .{ .req = transfer });
457457
}
458458

459-
fn headerCallback(self: *PendingScript, transfer: *Http.Transfer) void {
459+
fn headerCallback(self: *PendingScript, transfer: *Http.Transfer) !void {
460460
const header = &transfer.response_header.?;
461461
if (header.status != 200) {
462462
log.info(.http, "script header", .{

0 commit comments

Comments
 (0)