Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1274

JSONP responses should be sent with a "text/javascript" Content-type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.3, 1.1
    • 1.1.1, 1.2
    • HTTP Interface
    • None
    • Chrome 14, Firefox 6, Safari 5.

    • Regular Contributors Level (Easy to Medium)

    Description

      Currently, jsonp responses come with a "text/plain" header. This causes warnings in some browsers, including Google Chrome, Firefox & Safari, according to this report: http://stackoverflow.com/questions/7338983/js-warning-resource-interpreted-as-script-but-transferred-with-mime-type-text-pl

      Since jsonp responses are Javascript code, the content-type should instead be "text/javascript".

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              rnewson Robert Newson
              timanglade Timothee Anglade (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: