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.
- package/lib/server/network.js +6 -2
- package/package.json +1 -1
package/lib/server/network.js
CHANGED
|
@@ -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) =>
|
|
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) {
|