{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/makemehapi/issues/111","labels_url":"https://api.github.com/repos/hapijs/makemehapi/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/makemehapi/issues/111/comments","events_url":"https://api.github.com/repos/hapijs/makemehapi/issues/111/events","html_url":"https://github.com/hapijs/makemehapi/issues/111","id":53699884,"number":111,"title":"Misleading hints in exercise 12 \"cookies\" - createServer and cookies object","user":{"login":"biozz","id":3424811,"avatar_url":"https://avatars.githubusercontent.com/u/3424811?v=3","gravatar_id":"","url":"https://api.github.com/users/biozz","html_url":"https://github.com/biozz","followers_url":"https://api.github.com/users/biozz/followers","following_url":"https://api.github.com/users/biozz/following{/other_user}","gists_url":"https://api.github.com/users/biozz/gists{/gist_id}","starred_url":"https://api.github.com/users/biozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biozz/subscriptions","organizations_url":"https://api.github.com/users/biozz/orgs","repos_url":"https://api.github.com/users/biozz/repos","events_url":"https://api.github.com/users/biozz/events{/privacy}","received_events_url":"https://api.github.com/users/biozz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lloydbenson","id":1459257,"avatar_url":"https://avatars.githubusercontent.com/u/1459257?v=3","gravatar_id":"","url":"https://api.github.com/users/lloydbenson","html_url":"https://github.com/lloydbenson","followers_url":"https://api.github.com/users/lloydbenson/followers","following_url":"https://api.github.com/users/lloydbenson/following{/other_user}","gists_url":"https://api.github.com/users/lloydbenson/gists{/gist_id}","starred_url":"https://api.github.com/users/lloydbenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lloydbenson/subscriptions","organizations_url":"https://api.github.com/users/lloydbenson/orgs","repos_url":"https://api.github.com/users/lloydbenson/repos","events_url":"https://api.github.com/users/lloydbenson/events{/privacy}","received_events_url":"https://api.github.com/users/lloydbenson/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-08T00:16:59Z","updated_at":"2015-01-09T20:08:19Z","closed_at":"2015-01-09T20:08:19Z","body":"In the hints of exercise 12 \"cookies\" there is a mention of  `createServer` (this is somewhat linked to #103) and `options` object has `cookies` key - both are not used in the current Hapi API. \r\n\r\n> **createServer** takes an options object as a **third parameter**. Using this options object, we can configure the server to handle cookies in various way,\r\n```javascript\r\n>    var options = {\r\n>      state: {\r\n>        cookies: {\r\n>          parse: true ,\r\n>          failAction: 'log'\r\n>        }\r\n>      }\r\n>    };\r\n```\r\n\r\nI cannot quite understand what should be the correct sentance there, but I know that these options can be passed to a `route` as a `config`, like this (correct me if I'm wrong): \r\n```javascript\r\n    config: {\r\n        state: {\r\n            parse: true,\r\n            failAction: 'log'\r\n        }\r\n    }\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/hapijs/makemehapi/issues/comments/69391177","html_url":"https://github.com/hapijs/makemehapi/issues/111#issuecomment-69391177","issue_url":"https://api.github.com/repos/hapijs/makemehapi/issues/111","id":69391177,"user":{"login":"biozz","id":3424811,"avatar_url":"https://avatars.githubusercontent.com/u/3424811?v=3","gravatar_id":"","url":"https://api.github.com/users/biozz","html_url":"https://github.com/biozz","followers_url":"https://api.github.com/users/biozz/followers","following_url":"https://api.github.com/users/biozz/following{/other_user}","gists_url":"https://api.github.com/users/biozz/gists{/gist_id}","starred_url":"https://api.github.com/users/biozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biozz/subscriptions","organizations_url":"https://api.github.com/users/biozz/orgs","repos_url":"https://api.github.com/users/biozz/repos","events_url":"https://api.github.com/users/biozz/events{/privacy}","received_events_url":"https://api.github.com/users/biozz/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T20:08:19Z","updated_at":"2015-01-09T20:08:19Z","body":"The change looks good, you can merge it. "}}