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
This commit is contained in:
Karl Seguin
2025-09-05 08:55:36 +08:00
parent 5087b8004a
commit a6efa9e9b2

View File

@@ -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), .{