diff --git a/src/server/network.ts b/src/server/network.ts index 277de3cd4d..0e1411e634 100644 --- a/src/server/network.ts +++ b/src/server/network.ts @@ -52,7 +52,7 @@ export function rewriteCookies(cookies: types.SetNetworkCookieParam[]): types.Se assert(c.value, 'Cookie should have a value'); assert(c.url || (c.domain && c.path), 'Cookie should have a url or a domain/path pair'); assert(!(c.url && c.domain), 'Cookie should have either url or domain'); - assert(!(c.url && c.path), 'Cookie should have either url or domain'); + assert(!(c.url && c.path), 'Cookie should have either url or path'); const copy = {...c}; if (copy.url) { assert(copy.url !== 'about:blank', `Blank page can not have cookie "${c.name}"`);