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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.1
    • Fix Version/s: 1.1.1, 1.2
    • Component/s: HTTP Interface
    • Labels:
      None
    • Environment:

      Chrome 14, Firefox 6, Safari 5.

    • Skill Level:
      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

            Activity

              People

              • Assignee:
                rnewson Robert Newson
                Reporter:
                timanglade Tim Anglade
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: