[
https://issues.apache.org/jira/browse/HTRACE-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263975#comment-14263975
]
Colin Patrick McCabe commented on HTRACE-47:
--------------------------------------------
This patch just applies to the web pages we're serving, which all get served by
{{defaultServeHandler}}. I don't think we're setting a MIME type for the JSON
APIs. I will defer to you guys there... I'm not sure if we should set a MIME
type on those APIs or not? Web browsers seem to interpret the JSON replies as
text, so maybe that's good enough? The main users of those APIs will be
programs that presumably already know how to interpret what they're getting.
But maybe setting it is a best practice? Not sure.
> Add Content-Type header in REST server
> --------------------------------------
>
> Key: HTRACE-47
> URL: https://issues.apache.org/jira/browse/HTRACE-47
> Project: HTrace
> Issue Type: Bug
> Reporter: Abraham Elmahrek
> Assignee: Abraham Elmahrek
> Fix For: 3.2.0
>
> Attachments: HTRACE-47.0.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)