{"issue":{"title":"Post request header content type","user":{"login":"bkoc","id":780093,"url":"https://api.github.com/users/bkoc","avatar_url":"https://secure.gravatar.com/avatar/1499bbb8bb8da1c375f9e84c7ff0dc06?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1499bbb8bb8da1c375f9e84c7ff0dc06"},"created_at":"2011-12-24T13:48:54Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-24T15:21:15Z","id":2652735,"html_url":"https://github.com/youknowone/VisualJSON/issues/1","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"Post requests fail for rails servers.\r\n\r\nPost request to a rails server does not pass the authenticity check. The request headers should be set to \"Content-Type: application/json\" to disable authenticity checks for a request.\r\n\r\nRelated: http://stackoverflow.com/questions/1245618/rails-invalidauthenticitytoken-for-json-xml-requests\r\n\r\nIt looks like this is the reason I'm getting unprocessable entity response with status 422 for post requests.\r\n\r\nIt would be very useful if request headers can be set explicitly for such requests.\r\n\r\n","number":1,"url":"https://api.github.com/repos/youknowone/VisualJSON/issues/1","comments":4,"assignee":null},"comment":{"user":{"login":"bkoc","id":780093,"url":"https://api.github.com/users/bkoc","avatar_url":"https://secure.gravatar.com/avatar/1499bbb8bb8da1c375f9e84c7ff0dc06?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1499bbb8bb8da1c375f9e84c7ff0dc06"},"created_at":"2011-12-24T15:21:15Z","updated_at":"2011-12-24T15:21:15Z","id":3268047,"body":"thanks I'll check it","url":"https://api.github.com/repos/youknowone/VisualJSON/issues/comments/3268047"},"action":"created"}