CouchDB
  1. CouchDB
  2. COUCHDB-1274

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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".

        Issue Links

          Activity

          Tim Anglade created issue -
          Robert Newson made changes -
          Field Original Value New Value
          Assignee Robert Newson [ rnewson ]
          Hide
          Robert Newson added a comment -

          Unsure if this should be backported as it breaks compatibility (though in a very minor way)

          Show
          Robert Newson added a comment - Unsure if this should be backported as it breaks compatibility (though in a very minor way)
          Robert Newson made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.2 [ 12315198 ]
          Resolution Fixed [ 1 ]
          Hide
          Robert Newson added a comment -

          Backported to 1.1.x

          Show
          Robert Newson added a comment - Backported to 1.1.x
          Robert Newson made changes -
          Fix Version/s 1.1.1 [ 12316395 ]
          Robert Newson made changes -
          Link This issue is superceded by COUCHDB-2026 [ COUCHDB-2026 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development