File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ fn startCallback(transfer: *Http.Transfer) !void {
403403
404404fn headerCallback (transfer : * Http.Transfer ) ! void {
405405 const script : * PendingScript = @ptrCast (@alignCast (transfer .ctx ));
406- script .headerCallback (transfer );
406+ try script .headerCallback (transfer );
407407}
408408
409409fn 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" , .{
You can’t perform that action at this time.
0 commit comments