Skip to content

Commit d3be6ff

Browse files
committed
ref: Don't wait for response for Fetch
1 parent fe3fb6b commit d3be6ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ferrum/network/intercepted_request.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ def respond(**options)
4343
options = options.merge(body: Base64.strict_encode64(options.fetch(:body, ""))) if has_body
4444

4545
@status = :responded
46-
@client.command("Fetch.fulfillRequest", **options)
46+
@client.command("Fetch.fulfillRequest", async: true, **options)
4747
end
4848

4949
def continue(**options)
5050
options = options.merge(requestId: request_id)
5151
@status = :continued
52-
@client.command("Fetch.continueRequest", **options)
52+
@client.command("Fetch.continueRequest", async: true, **options)
5353
end
5454

5555
def abort
5656
@status = :aborted
57-
@client.command("Fetch.failRequest", requestId: request_id, errorReason: "BlockedByClient")
57+
@client.command("Fetch.failRequest", async: true, requestId: request_id, errorReason: "BlockedByClient")
5858
end
5959

6060
def initial_priority

0 commit comments

Comments
 (0)