cordova-issues 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] (CB-9343) MimeType is not the same as Content-Type
Date Thu, 09 Jul 2015 18:10:04 GMT

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

ASF GitHub Bot commented on CB-9343:
------------------------------------

GitHub user spirann opened a pull request:

    https://github.com/apache/cordova-android/pull/197

    CB-9343 Split the Content-Type to obtain a clean mimetype

    This is a fix for https://issues.apache.org/jira/browse/CB-9343
    
    If Content-Type contains a charset, only take the mimetype part

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

    $ git pull https://github.com/spirann/cordova-android CB-9343

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

    https://github.com/apache/cordova-android/pull/197.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 #197
    
----
commit 9fd2889705e8cfdc63d48db8aaea56f8189144d7
Author: Simon Pireyn <spireyn@gmail.com>
Date:   2015-07-09T18:00:10Z

    CB-9343 Split the Content-Type to obtain a clean mimetype

----


> MimeType is not the same as Content-Type
> ----------------------------------------
>
>                 Key: CB-9343
>                 URL: https://issues.apache.org/jira/browse/CB-9343
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.7.0
>            Reporter: Simon Pireyn
>              Labels: android, content-type, cordova, mime-type, mimeType
>
> In CordovaResourceApi (and maybe elsewhere) mimetype is set with the value of the header
"Content-Type" but when "Content-Type" contains the charset (ex: "text/html; charset=utf-8")
the mimetype is incorrect and lead to problems when loaded as WebResourceResponse. 
> ex: webpages loaded as raw HTML
> "Content-Type" should be splitted at the ";"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message