Skip to content

Commit 6c35277

Browse files
authored
HBASE-29531 Addendum fix missing charset in RS Status page (#7594)
Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent 0715313 commit 6c35277

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

hbase-server/src/main/resources/hbase-webapps/regionserver/regionserver.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
if (RSStatusConstants.FORMAT_JSON.equals(format)) {
4040
response.setContentType("application/json");
4141
} else {
42-
response.setContentType("text/html");
42+
response.setContentType("text/html;charset=utf-8");
4343
}
4444
4545
if (!regionServer.isOnline()) {

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/http/TestRSStatusPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void testStatusPage() throws Exception {
122122
int port = firstServerName.getPort();
123123

124124
URL url = new URL("http://" + hostname + ":" + infoPort + "/regionserver.jsp");
125-
String page = TestServerHttpUtils.getPageContent(url, "text/html");
125+
String page = TestServerHttpUtils.getPageContent(url, "text/html;charset=utf-8");
126126

127127
assertTrue(page.contains("<title>HBase Region Server: " + masterHostname + "</title>"));
128128

0 commit comments

Comments
 (0)