Skip to content

Commit

Permalink
[dotnet] Fix continueResponse method in CDP (#12445)
Browse files Browse the repository at this point in the history
Fix continueResponse method in CDP

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
nvborisenko and diemol authored Jul 31, 2023
1 parent 316d8cf commit 2516656
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/DevTools/Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public async Task SetUserAgentOverride(string userAgent)
public abstract Task AddResponseBody(HttpResponseData responseData);

/// <summary>
/// Asynchronously contines an intercepted network response without modification.
/// Asynchronously continues an intercepted network response without modification.
/// </summary>
/// <param name="responseData">The <see cref="HttpResponseData"/> of the network response.</param>
/// <returns>A task that represents the asynchronous operation.</returns>
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/DevTools/v113/V113Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ public override async Task AddResponseBody(HttpResponseData responseData)
}

/// <summary>
/// Asynchronously contines an intercepted network response without modification.
/// Asynchronously continues an intercepted network response without modification.
/// </summary>
/// <param name="responseData">The <see cref="HttpResponseData"/> of the network response.</param>
/// <returns>A task that represents the asynchronous operation.</returns>
public override async Task ContinueResponseWithoutModification(HttpResponseData responseData)
{
await fetch.ContinueRequest(new ContinueRequestCommandSettings() { RequestId = responseData.RequestId });
await fetch.ContinueResponse(new ContinueResponseCommandSettings() { RequestId = responseData.RequestId });
}

private void OnFetchAuthRequired(object sender, Fetch.AuthRequiredEventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/DevTools/v114/V114Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ public override async Task AddResponseBody(HttpResponseData responseData)
}

/// <summary>
/// Asynchronously contines an intercepted network response without modification.
/// Asynchronously continues an intercepted network response without modification.
/// </summary>
/// <param name="responseData">The <see cref="HttpResponseData"/> of the network response.</param>
/// <returns>A task that represents the asynchronous operation.</returns>
public override async Task ContinueResponseWithoutModification(HttpResponseData responseData)
{
await fetch.ContinueRequest(new ContinueRequestCommandSettings() { RequestId = responseData.RequestId });
await fetch.ContinueResponse(new ContinueResponseCommandSettings() { RequestId = responseData.RequestId });
}

private void OnFetchAuthRequired(object sender, Fetch.AuthRequiredEventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/DevTools/v115/V115Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ public override async Task AddResponseBody(HttpResponseData responseData)
}

/// <summary>
/// Asynchronously contines an intercepted network response without modification.
/// Asynchronously continues an intercepted network response without modification.
/// </summary>
/// <param name="responseData">The <see cref="HttpResponseData"/> of the network response.</param>
/// <returns>A task that represents the asynchronous operation.</returns>
public override async Task ContinueResponseWithoutModification(HttpResponseData responseData)
{
await fetch.ContinueRequest(new ContinueRequestCommandSettings() { RequestId = responseData.RequestId });
await fetch.ContinueResponse(new ContinueResponseCommandSettings() { RequestId = responseData.RequestId });
}

private void OnFetchAuthRequired(object sender, Fetch.AuthRequiredEventArgs e)
Expand Down

0 comments on commit 2516656

Please sign in to comment.