Skip to content

Commit a6efa9e

Browse files
committed
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. #947
1 parent 5087b80 commit a6efa9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http/Client.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ pub const Transfer = struct {
845845

846846
const url = try urlStitch(arena, hlocation.?.value, std.mem.span(baseurl), .{});
847847
const uri = try std.Uri.parse(url);
848+
transfer.uri = uri;
848849

849850
var cookies: std.ArrayListUnmanaged(u8) = .{};
850851
try req.cookie_jar.forRequest(&uri, cookies.writer(arena), .{

0 commit comments

Comments
 (0)