Skip to content

Commit

Permalink
update state on update_protocol_request_interception
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-spanka committed Oct 25, 2024
1 parent 6f2392f commit aa933c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handler/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ impl NetworkManager {
}
self.update_protocol_cache_disabled();
if enabled {
self.protocol_request_interception_enabled = true;
self.push_cdp_request(
fetch::EnableParams::builder()
.handle_auth_requests(true)
.pattern(RequestPattern::builder().url_pattern("*").build())
.build(),
)
} else {
self.protocol_request_interception_enabled = false;
self.push_cdp_request(DisableParams::default())
}
}
Expand Down

0 comments on commit aa933c3

Please sign in to comment.