[
https://issues.apache.org/jira/browse/HDFS-3516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291806#comment-13291806
]
Daryn Sharp commented on HDFS-3516:
-----------------------------------
Once a test is added, looks good. Seems a tiny bit awkward to pass the
content-type to {{parseJson}} but otoh it avoids redundancy.
> Check content-type in WebHdfsFileSystem
> ---------------------------------------
>
> Key: HDFS-3516
> URL: https://issues.apache.org/jira/browse/HDFS-3516
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs client
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Attachments: h3516_20120607.patch
>
>
> WebHdfsFileSystem currently tries to parse the response as json. It may be a
> good idea to check the content-type before parsing it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira