playwright-core 1.55.0-alpha-1754386682000 → 1.55.0-alpha-2025-08-06

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300,8 +300,12 @@ class Route extends import_instrumentation.SdkObject {
300
300
  if (oldUrl.protocol !== newUrl.protocol)
301
301
  throw new Error("New URL must have same protocol as overridden URL");
302
302
  }
303
- if (overrides.headers)
304
- overrides.headers = overrides.headers?.filter((header) => header.name.toLowerCase() !== "cookie");
303
+ if (overrides.headers) {
304
+ overrides.headers = overrides.headers?.filter((header) => {
305
+ const headerName = header.name.toLowerCase();
306
+ return headerName !== "cookie" && headerName !== "host";
307
+ });
308
+ }
305
309
  overrides = this._request._applyOverrides(overrides);
306
310
  const nextHandler = this._futureHandlers.shift();
307
311
  if (nextHandler) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-core",
3
- "version": "1.55.0-alpha-1754386682000",
3
+ "version": "1.55.0-alpha-2025-08-06",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",