{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/205","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/205/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/205/events","html_url":"https://github.com/Esri/resource-proxy/issues/205","id":58258354,"number":205,"title":"JSP: set Content-Type to json for errors","user":{"login":"bsvensson","id":808357,"avatar_url":"https://avatars.githubusercontent.com/u/808357?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvensson","html_url":"https://github.com/bsvensson","followers_url":"https://api.github.com/users/bsvensson/followers","following_url":"https://api.github.com/users/bsvensson/following{/other_user}","gists_url":"https://api.github.com/users/bsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvensson/subscriptions","organizations_url":"https://api.github.com/users/bsvensson/orgs","repos_url":"https://api.github.com/users/bsvensson/repos","events_url":"https://api.github.com/users/bsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/bsvensson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Esri/resource-proxy/labels/*Java*","name":"*Java*","color":"eeeeee"}],"state":"closed","locked":false,"assignee":{"login":"bsvensson","id":808357,"avatar_url":"https://avatars.githubusercontent.com/u/808357?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvensson","html_url":"https://github.com/bsvensson","followers_url":"https://api.github.com/users/bsvensson/followers","following_url":"https://api.github.com/users/bsvensson/following{/other_user}","gists_url":"https://api.github.com/users/bsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvensson/subscriptions","organizations_url":"https://api.github.com/users/bsvensson/orgs","repos_url":"https://api.github.com/users/bsvensson/repos","events_url":"https://api.github.com/users/bsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/bsvensson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Esri/resource-proxy/milestones/3","labels_url":"https://api.github.com/repos/Esri/resource-proxy/milestones/3/labels","id":605920,"number":3,"title":"1.1","description":"","creator":{"login":"bsvensson","id":808357,"avatar_url":"https://avatars.githubusercontent.com/u/808357?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvensson","html_url":"https://github.com/bsvensson","followers_url":"https://api.github.com/users/bsvensson/followers","following_url":"https://api.github.com/users/bsvensson/following{/other_user}","gists_url":"https://api.github.com/users/bsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvensson/subscriptions","organizations_url":"https://api.github.com/users/bsvensson/orgs","repos_url":"https://api.github.com/users/bsvensson/repos","events_url":"https://api.github.com/users/bsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/bsvensson/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":51,"state":"open","created_at":"2014-03-21T21:44:00Z","updated_at":"2015-02-19T20:00:04Z","due_on":"2015-05-05T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-02-19T19:44:21Z","updated_at":"2015-02-19T20:00:04Z","closed_at":"2015-02-19T20:00:04Z","body":"Tomcat by default serves HTML files with Content-Type=text/html (no charset portion).\r\n\r\nWhen we return JSON we should set the Content-Type to JSON. We already do this for \"ping\", but not for error responses.\r\n\r\nTest `http://localhost:8080/Java/proxy.jsp?oops` or `http://localhost:8080/Java/proxy.jsp`"},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/75124617","html_url":"https://github.com/Esri/resource-proxy/issues/205#issuecomment-75124617","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/205","id":75124617,"user":{"login":"esoekianto","id":5265339,"avatar_url":"https://avatars.githubusercontent.com/u/5265339?v=3","gravatar_id":"","url":"https://api.github.com/users/esoekianto","html_url":"https://github.com/esoekianto","followers_url":"https://api.github.com/users/esoekianto/followers","following_url":"https://api.github.com/users/esoekianto/following{/other_user}","gists_url":"https://api.github.com/users/esoekianto/gists{/gist_id}","starred_url":"https://api.github.com/users/esoekianto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esoekianto/subscriptions","organizations_url":"https://api.github.com/users/esoekianto/orgs","repos_url":"https://api.github.com/users/esoekianto/repos","events_url":"https://api.github.com/users/esoekianto/events{/privacy}","received_events_url":"https://api.github.com/users/esoekianto/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T20:00:04Z","updated_at":"2015-02-19T20:00:04Z","body":"fix at #206 , the same behavior was also observed in other java web server (I tested on WebSphere too)"}}