[ https://issues.apache.org/jira/browse/HADOOP-13588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15474129#comment-15474129 ]
Weiwei Yang commented on HADOOP-13588: -------------------------------------- Mark this one as incompatible change because it changes way of how clients send http request to get different content types from http response. > ConfServlet doesn't set response content type according to the Accept header > ----------------------------------------------------------------------------- > > Key: HADOOP-13588 > URL: https://issues.apache.org/jira/browse/HADOOP-13588 > Project: Hadoop Common > Issue Type: Bug > Components: conf > Reporter: Weiwei Yang > Assignee: Weiwei Yang > > ConfServlet provides a general service to retrieve daemon configurations. > However it doesn't set response content-type according to *Accept* header. > For example, by issuing following command, > {code} > curl --header "Accept:application/json" > http://${resourcemanager_host}:8088/conf > {code} > I am expecting the response would be in JSON format, however it is still in > XML. I can only get JSON if I issue > {code} > curl http://${resourcemanager_host}:8088/conf?format="json" > {code} > This is not the common way how clients set content-type. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org