From aa933c39ce2425631e4fa4c03174bddde15f9681 Mon Sep 17 00:00:00 2001 From: Henry Spanka Date: Fri, 25 Oct 2024 08:15:23 +0200 Subject: [PATCH] update state on update_protocol_request_interception --- src/handler/network.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handler/network.rs b/src/handler/network.rs index 46e8bc6..1a6b273 100644 --- a/src/handler/network.rs +++ b/src/handler/network.rs @@ -119,6 +119,7 @@ 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) @@ -126,6 +127,7 @@ impl NetworkManager { .build(), ) } else { + self.protocol_request_interception_enabled = false; self.push_cdp_request(DisableParams::default()) } }