You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Tim Anglade (JIRA)" <ji...@apache.org> on 2011/09/07 22:49:10 UTC

[jira] [Created] (COUCHDB-1274) JSONP responses should be sent with a "text/javascript" Content-type

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

                 Key: COUCHDB-1274
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1274
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 1.0.3, 1.1
         Environment: Chrome 14, Firefox 6, Safari 5.
            Reporter: Tim Anglade
            Priority: Minor


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".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (COUCHDB-1274) JSONP responses should be sent with a "text/javascript" Content-type

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson updated COUCHDB-1274:
-----------------------------------

    Fix Version/s: 1.1.1

Backported to 1.1.x

> JSONP responses should be sent with a "text/javascript" Content-type
> --------------------------------------------------------------------
>
>                 Key: COUCHDB-1274
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1274
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.1, 1.0.3
>         Environment: Chrome 14, Firefox 6, Safari 5.
>            Reporter: Tim Anglade
>            Assignee: Robert Newson
>            Priority: Minor
>             Fix For: 1.1.1, 1.2
>
>
> 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".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COUCHDB-1274) JSONP responses should be sent with a "text/javascript" Content-type

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson resolved COUCHDB-1274.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

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

> JSONP responses should be sent with a "text/javascript" Content-type
> --------------------------------------------------------------------
>
>                 Key: COUCHDB-1274
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1274
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.1, 1.0.3
>         Environment: Chrome 14, Firefox 6, Safari 5.
>            Reporter: Tim Anglade
>            Assignee: Robert Newson
>            Priority: Minor
>             Fix For: 1.2
>
>
> 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".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (COUCHDB-1274) JSONP responses should be sent with a "text/javascript" Content-type

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson reassigned COUCHDB-1274:
--------------------------------------

    Assignee: Robert Newson

> JSONP responses should be sent with a "text/javascript" Content-type
> --------------------------------------------------------------------
>
>                 Key: COUCHDB-1274
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1274
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.1, 1.0.3
>         Environment: Chrome 14, Firefox 6, Safari 5.
>            Reporter: Tim Anglade
>            Assignee: Robert Newson
>            Priority: Minor
>
> 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".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira