Skip to content

Commit 9f04002

Browse files
Merge pull request #1010 from lightpanda-io/update_transfer_uri_on_redirect
Update the transfer.uri on redirect
2 parents 2522e7f + a6efa9e commit 9f04002

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)