From a6efa9e9b2bf19cd33b2855af5b80a0c703a4685 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Fri, 5 Sep 2025 08:55:36 +0800 Subject: [PATCH] Update the transfer.uri on redirect Ensures that cookies set on the redirect page use the correct host and we don't incorrectly reject cookies. https://github.com/lightpanda-io/browser/issues/947 --- src/http/Client.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/Client.zig b/src/http/Client.zig index 15b519d3..35dffb82 100644 --- a/src/http/Client.zig +++ b/src/http/Client.zig @@ -845,6 +845,7 @@ pub const Transfer = struct { const url = try urlStitch(arena, hlocation.?.value, std.mem.span(baseurl), .{}); const uri = try std.Uri.parse(url); + transfer.uri = uri; var cookies: std.ArrayListUnmanaged(u8) = .{}; try req.cookie_jar.forRequest(&uri, cookies.writer(arena), .{