Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.2.2
-
None
-
Hhbase 1.2.2
-
Reviewed
Description
Hbase REST API, this interface `get 'version/cluster'`, when I use the header `Accept: application/json`, the response is not JSON but plain text.
curl -X GET \ -H "Accept: application/json" \ "http://localhost:8888/version/cluster" "1.2.2"
But when I use `Accept: text/xml`, the response is correct XML.
curl -X GET \ -H "Accept: text/xml" \ "http://localhost:8888/version/cluster" <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ClusterVersion>1.2.2</ClusterVersion>