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

Tom White commented on HADOOP-7093:
-----------------------------------

+1

Nit: with this patch there are two mimetypes for JSON; we should use 
"application/json" in both cases (http://tools.ietf.org/html/rfc4627).

> Servlets should default to text/plain
> -------------------------------------
>
>                 Key: HADOOP-7093
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7093
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>         Attachments: hadoop-7093.2.txt, hadoop-7093.txt
>
>
> In trunk the servlets like /stacks and /metrics are returning text/html 
> content-type instead of text/plain. Security wise it's much safer to default 
> to text/plain and require servlets to explicitly set the content-type to 
> text/html when required.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to