From d3be6ff8a5f351b71cd298d3eb6b1a4a14e83622 Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Sat, 6 Jan 2024 14:15:25 +0300 Subject: [PATCH] ref: Don't wait for response for Fetch --- lib/ferrum/network/intercepted_request.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ferrum/network/intercepted_request.rb b/lib/ferrum/network/intercepted_request.rb index 51a5f052..7dda9e65 100644 --- a/lib/ferrum/network/intercepted_request.rb +++ b/lib/ferrum/network/intercepted_request.rb @@ -43,18 +43,18 @@ def respond(**options) options = options.merge(body: Base64.strict_encode64(options.fetch(:body, ""))) if has_body @status = :responded - @client.command("Fetch.fulfillRequest", **options) + @client.command("Fetch.fulfillRequest", async: true, **options) end def continue(**options) options = options.merge(requestId: request_id) @status = :continued - @client.command("Fetch.continueRequest", **options) + @client.command("Fetch.continueRequest", async: true, **options) end def abort @status = :aborted - @client.command("Fetch.failRequest", requestId: request_id, errorReason: "BlockedByClient") + @client.command("Fetch.failRequest", async: true, requestId: request_id, errorReason: "BlockedByClient") end def initial_priority