{"action":"opened","issue":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/1205","labels_url":"https://api.github.com/repos/guzzle/guzzle/issues/1205/labels{/name}","comments_url":"https://api.github.com/repos/guzzle/guzzle/issues/1205/comments","events_url":"https://api.github.com/repos/guzzle/guzzle/issues/1205/events","html_url":"https://github.com/guzzle/guzzle/issues/1205","id":99061020,"number":1205,"title":"Incorrect interpretation of RFC 6265 in SetCookie::validate","user":{"login":"Naktibalda","id":395992,"avatar_url":"https://avatars.githubusercontent.com/u/395992?v=3","gravatar_id":"","url":"https://api.github.com/users/Naktibalda","html_url":"https://github.com/Naktibalda","followers_url":"https://api.github.com/users/Naktibalda/followers","following_url":"https://api.github.com/users/Naktibalda/following{/other_user}","gists_url":"https://api.github.com/users/Naktibalda/gists{/gist_id}","starred_url":"https://api.github.com/users/Naktibalda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naktibalda/subscriptions","organizations_url":"https://api.github.com/users/Naktibalda/orgs","repos_url":"https://api.github.com/users/Naktibalda/repos","events_url":"https://api.github.com/users/Naktibalda/events{/privacy}","received_events_url":"https://api.github.com/users/Naktibalda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T20:59:24Z","updated_at":"2015-08-04T20:59:24Z","closed_at":null,"body":"[SetCookie::validate](https://github.com/guzzle/guzzle/blob/6692db3cda013e8357330243c33fe1838d0ea6f5/src/Cookie/SetCookie.php#L366) checks if the cookie is valid according to RFC 6265\r\n\r\nIt includes the following checks:\r\n  1. Names must not be empty, but can be 0\r\n  1. Value must not be empty, but can be 0\r\n\r\n[RFC 6265](http://tools.ietf.org/html/rfc6265#page-18)\r\n```\r\n   3.  The (possibly empty) name string consists of the characters up\r\n       to, but not including, the first %x3D (\"=\") character, and the\r\n       (possibly empty) value string consists of the characters after\r\n       the first %x3D (\"=\") character.\r\n\r\n   4.  Remove any leading or trailing WSP characters from the name\r\n       string and the value string.\r\n\r\n   5.  If the name string is empty, ignore the set-cookie-string\r\n       entirely.\r\n\r\n```\r\n\r\nIt only says to ignore the cookie, not to do something drastic like throwing exception, when name string is empty and says nothing about empty value."}}