mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
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:
@@ -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), .{
|
||||
|
||||
Reference in New Issue
Block a user