Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13541

Content Type of JSON API responses is not 'application/json'

XMLWordPrintable

      When making requests to the JSON API, responses are specifying a content type of application/javascript instead of application/json as defined in RFC4627

      The following is the response form http://ci.jenkins-ci.org/view/Jenkins core/api/json

      HTTP/1.1 200 OK
      Content-Length: 640
      Server: Winstone Servlet Engine v0.9.10
      Content-Type: application/javascript;charset=UTF-8
      Connection: Close
      Date: Sat, 21 Apr 2012 03:55:50 GMT
      X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
      Set-Cookie: SERVERID=Local; path=/
      Cache-Control: private
      

            kukido Andrey Myatlyuk
            jmutter Justin Mutter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: