Skip to content

Commit

Permalink
ref: Don't wait for response for Fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Jan 6, 2024
1 parent fe3fb6b commit d3be6ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ferrum/network/intercepted_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3be6ff

Please sign in to comment.