We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156bc63 commit 3ec3d75Copy full SHA for 3ec3d75
src/Cookie.ts
@@ -54,7 +54,7 @@ class Cookie implements Cookie.CookieOptions {
54
if (!Cookie.TOKEN.test(name))
55
throw new SyntaxError(`Cookie name "${name}" is not a valid "token" as per RFC 2616, Section 2.2.`);
56
if (!Cookie.COOKIE_OCTET.test(value))
57
- throw new SyntaxError(`Cookie "${name}" value "${value}" is not a valid "*cookie-octet" as per RFC 6265, Section 4.1.1.`);
+ throw new SyntaxError(`In cookie "${name}", value "${value}" is not a valid "*cookie-octet" as per RFC 6265, Section 4.1.1.`);
58
this.name = name;
59
this.value = value;
60
this.domain = options?.domain;
0 commit comments