diff --git a/src/Header/SetCookie.php b/src/Header/SetCookie.php index 5030ab246c..f58a931ee6 100644 --- a/src/Header/SetCookie.php +++ b/src/Header/SetCookie.php @@ -260,10 +260,6 @@ public function getFieldValue() */ public function setName($name) { - if ($name !== null && preg_match("/[=,; \t\r\n\013\014]/", $name)) { - throw new Exception\InvalidArgumentException("Cookie name cannot contain these characters: =,; \\t\\r\\n\\013\\014 ({$name})"); - } - $this->name = $name; return $this; }