You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (Updated) (JIRA)" <ji...@apache.org> on 2011/10/12 03:25:11 UTC
[jira] [Updated] (HDFS-2441) webhdfs returns two content-type
headers
[ https://issues.apache.org/jira/browse/HDFS-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE updated HDFS-2441:
-----------------------------------------
Attachment: h2441_20111011.patch
h2441_20111011_0.20s.patch
Moving this issue back to HDFS since the content type can be cleared in WebHdfs. Below are the patches.
h2441_20111011_0.20s.patch
h2441_20111011.patch
> webhdfs returns two content-type headers
> ----------------------------------------
>
> Key: HDFS-2441
> URL: https://issues.apache.org/jira/browse/HDFS-2441
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Arpit Gupta
> Attachments: h2441_20111011.patch, h2441_20111011_0.20s.patch
>
>
> $ curl -i "http://localhost:50070/webhdfs/path?op=GETFILESTATUS"
> HTTP/1.1 200 OK
> Content-Type: text/html; charset=utf-8
> Expires: Thu, 01-Jan-1970 00:00:00 GMT
> ........
> Content-Type: application/json
> Transfer-Encoding: chunked
> Server: Jetty(6.1.26)
> It should only return one content type header = application/json
--
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