{"action":"created","issue":{"url":"https://api.github.com/repos/sdogruyol/kemal/issues/138","repository_url":"https://api.github.com/repos/sdogruyol/kemal","labels_url":"https://api.github.com/repos/sdogruyol/kemal/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/sdogruyol/kemal/issues/138/comments","events_url":"https://api.github.com/repos/sdogruyol/kemal/issues/138/events","html_url":"https://github.com/sdogruyol/kemal/issues/138","id":145376868,"number":138,"title":"Kemal's documentation incorrect regarding 'content_type'","user":{"login":"ruivieira","id":327909,"avatar_url":"https://avatars.githubusercontent.com/u/327909?v=3","gravatar_id":"","url":"https://api.github.com/users/ruivieira","html_url":"https://github.com/ruivieira","followers_url":"https://api.github.com/users/ruivieira/followers","following_url":"https://api.github.com/users/ruivieira/following{/other_user}","gists_url":"https://api.github.com/users/ruivieira/gists{/gist_id}","starred_url":"https://api.github.com/users/ruivieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruivieira/subscriptions","organizations_url":"https://api.github.com/users/ruivieira/orgs","repos_url":"https://api.github.com/users/ruivieira/repos","events_url":"https://api.github.com/users/ruivieira/events{/privacy}","received_events_url":"https://api.github.com/users/ruivieira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-02T14:13:40Z","updated_at":"2016-04-02T14:19:23Z","closed_at":null,"body":"In [Kemal's website ](http://kemalcr.com/docs/http-requests/), the HTTP request documentation is incorrect.\r\n\r\nIt shows \r\n```crystal\r\n# Set the content as application/json and return JSON\r\nget \"/user.json\" do |env|\r\n    kemal = {name: \"Kemal\", language: \"Crystal\"}\r\n    env.content_type = \"application/json\"\r\n    kemal.to_json\r\nend\r\n```\r\n\r\nbut it should be\r\n\r\n```crystal\r\n# Set the content as application/json and return JSON\r\nget \"/user.json\" do |env|\r\n    kemal = {name: \"Kemal\", language: \"Crystal\"}\r\n    env.response.content_type = \"application/json\"\r\n    kemal.to_json\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sdogruyol/kemal/issues/comments/204724403","html_url":"https://github.com/sdogruyol/kemal/issues/138#issuecomment-204724403","issue_url":"https://api.github.com/repos/sdogruyol/kemal/issues/138","id":204724403,"user":{"login":"sdogruyol","id":990485,"avatar_url":"https://avatars.githubusercontent.com/u/990485?v=3","gravatar_id":"","url":"https://api.github.com/users/sdogruyol","html_url":"https://github.com/sdogruyol","followers_url":"https://api.github.com/users/sdogruyol/followers","following_url":"https://api.github.com/users/sdogruyol/following{/other_user}","gists_url":"https://api.github.com/users/sdogruyol/gists{/gist_id}","starred_url":"https://api.github.com/users/sdogruyol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdogruyol/subscriptions","organizations_url":"https://api.github.com/users/sdogruyol/orgs","repos_url":"https://api.github.com/users/sdogruyol/repos","events_url":"https://api.github.com/users/sdogruyol/events{/privacy}","received_events_url":"https://api.github.com/users/sdogruyol/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T14:19:23Z","updated_at":"2016-04-02T14:19:23Z","body":"Nice catch :+1: Could you please open a PR for this :bow: "}}