http: add reset and tries for transfer

This commit is contained in:
Pierre Tachoire
2025-08-26 16:44:26 +02:00
parent 4c602256da
commit 520a572bb4
2 changed files with 17 additions and 2 deletions

View File

@@ -313,7 +313,6 @@ fn continueWithAuth(cmd: anytype) !void {
errdefer transfer.abortAuthChallenge();
// restart the request with the provided credentials.
// we need to duplicate the cre
const arena = transfer.arena.allocator();
transfer.updateCredentials(
try std.fmt.allocPrintZ(arena, "{s}:{s}", .{
@@ -322,6 +321,7 @@ fn continueWithAuth(cmd: anytype) !void {
}),
);
transfer.reset();
try bc.cdp.browser.http_client.process(transfer);
if (intercept_state.empty()) {