couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2026) JSONP responses should be sent with a "application/javascript" Content-type
Date Fri, 23 May 2014 18:23:01 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007500#comment-14007500
] 

ASF GitHub Bot commented on COUCHDB-2026:
-----------------------------------------

GitHub user robertkowalski opened a pull request:

    https://github.com/apache/couchdb/pull/236

    HTTP Interface: Content-Type "application/javascript" for JSONP

    This changes the content type to application/javascript for
    JSONP responses, which is marked as obsolete in rfc 4329.
    
    The upcoming 2.0 release is a great opportunity to include this
    small breaking, but breaking change for clients.
    
    Closes COUCHDB-2026

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/robertkowalski/couchdb erlang-2026-json-p-type-header

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb/pull/236.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #236
    
----
commit e74c3e0f62d9e1d537be034918758f2694805b26
Author: Robert Kowalski <rok@kowalski.gd>
Date:   2014-05-23T18:13:12Z

    HTTP Interface: Content-Type "application/javascript" for JSONP
    
    This changes the content type to application/javascript for
    JSONP responses, which is marked as obsolete in rfc 4329.
    
    The upcoming 2.0 release is a great opportunity to include this
    small breaking, but breaking change for clients.
    
    Closes COUCHDB-2026

----


> JSONP responses should be sent with a "application/javascript" Content-type
> ---------------------------------------------------------------------------
>
>                 Key: COUCHDB-2026
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2026
>             Project: CouchDB
>          Issue Type: Sub-task
>          Components: HTTP Interface
>            Reporter: Hank Knight
>             Fix For: 1.1.1, 1.2
>
>
> The Content-Type header for JSONP should be "application/javascript"
> While the content-type of "text/javascript" is widely used, it is obsolete and may not
be supported by future browsers.
> See:
> http://tools.ietf.org/html/rfc4329
> http://www.rfc-editor.org/rfc/rfc4329.txt



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message