Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ await page.GotoAsync("https://example.com");
// Delete header
await page.route('**/*', async route => {
const headers = route.request().headers();
delete headers['X-Secret'];
delete headers['x-secret'];
await route.continue({ headers });
});

Expand All @@ -496,7 +496,7 @@ await page.route('**/*', route => route.continue({ method: 'POST' }));
// Delete header
page.route("**/*", route -> {
Map<String, String> headers = new HashMap<>(route.request().headers());
headers.remove("X-Secret");
headers.remove("x-secret");
route.resume(new Route.ResumeOptions().setHeaders(headers));
});

Expand Down Expand Up @@ -532,7 +532,7 @@ page.route("**/*", lambda route: route.continue_(method="POST"))
// Delete header
await page.RouteAsync("**/*", async route => {
var headers = new Dictionary<string, string>(route.Request.Headers.ToDictionary(x => x.Key, x => x.Value));
headers.Remove("X-Secret");
headers.Remove("x-secret");
await route.ContinueAsync(new() { Headers = headers });
});

Expand Down