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

Brahma Reddy Battula commented on HADOOP-12088:
-----------------------------------------------

As per [RFC|http://www.ietf.org/rfc/rfc4627.txt] specification type and sub 
type can be followed by parameters separated by ";"

So, I think its sufficient to check as 
{{conn.getContentType().startsWIth("application/json")}}

[[email protected]] please let me know your opinion.

> KMSClientProvider uses equalsIgnoreCase("application/json")
> -----------------------------------------------------------
>
>                 Key: HADOOP-12088
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12088
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: kms
>    Affects Versions: 2.7.1
>            Reporter: Steve Loughran
>            Assignee: Brahma Reddy Battula
>            Priority: Minor
>
> {{KMSClientProvider.call()}} validates the content type returned by going 
> {code}
> "application/json".equalsIgnoreCase(conn.getContentType())
> {code}
> that's not going to work in all locales, not if upper case is being returned. 



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

Reply via email to