{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyevans/roda/issues/42","labels_url":"https://api.github.com/repos/jeremyevans/roda/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/jeremyevans/roda/issues/42/comments","events_url":"https://api.github.com/repos/jeremyevans/roda/issues/42/events","html_url":"https://github.com/jeremyevans/roda/issues/42","id":102004993,"number":42,"title":"Add content-type to plugin: json","user":{"login":"Kyrremann","id":1830501,"avatar_url":"https://avatars.githubusercontent.com/u/1830501?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyrremann","html_url":"https://github.com/Kyrremann","followers_url":"https://api.github.com/users/Kyrremann/followers","following_url":"https://api.github.com/users/Kyrremann/following{/other_user}","gists_url":"https://api.github.com/users/Kyrremann/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyrremann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyrremann/subscriptions","organizations_url":"https://api.github.com/users/Kyrremann/orgs","repos_url":"https://api.github.com/users/Kyrremann/repos","events_url":"https://api.github.com/users/Kyrremann/events{/privacy}","received_events_url":"https://api.github.com/users/Kyrremann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-19T21:37:07Z","updated_at":"2016-01-12T21:32:32Z","closed_at":"2015-08-19T21:38:06Z","body":"Akward, read the guidlines after I pressed submit.\r\nSorry.\r\n\r\nI'm having problems adding `content-type` and using the `json-plugin`. My output contains Cyrillic-letter and so I need to set the content-type to be `UTF-8` so that the browsers renders the text correctly (at least that's my understanding of how it works).\r\n\r\nSo when I try to add a default-header or change it before my JSON is returned, it get overwritten by the json-plugin.\r\nSee https://github.com/jeremyevans/roda/blob/master/lib/roda/plugins/json.rb#L84\r\n\r\nAm I working on the problem from the wrong angle, or should maybe the plugin be extended so that you can supplement the `content-type` with `charset`? "},"comment":{"url":"https://api.github.com/repos/jeremyevans/roda/issues/comments/171063679","html_url":"https://github.com/jeremyevans/roda/issues/42#issuecomment-171063679","issue_url":"https://api.github.com/repos/jeremyevans/roda/issues/42","id":171063679,"user":{"login":"Kyrremann","id":1830501,"avatar_url":"https://avatars.githubusercontent.com/u/1830501?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyrremann","html_url":"https://github.com/Kyrremann","followers_url":"https://api.github.com/users/Kyrremann/followers","following_url":"https://api.github.com/users/Kyrremann/following{/other_user}","gists_url":"https://api.github.com/users/Kyrremann/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyrremann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyrremann/subscriptions","organizations_url":"https://api.github.com/users/Kyrremann/orgs","repos_url":"https://api.github.com/users/Kyrremann/repos","events_url":"https://api.github.com/users/Kyrremann/events{/privacy}","received_events_url":"https://api.github.com/users/Kyrremann/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T21:32:32Z","updated_at":"2016-01-12T21:32:32Z","body":"I'm working on a small Pull Request, but I'm not sure what you meant by dynamic content-type."}}