You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by su...@apache.org on 2022/08/19 21:05:30 UTC

[hive] branch master updated: HIVE-26478: Explicitly set Content-Type in QueryProfileServlet (#3527)

This is an automated email from the ASF dual-hosted git repository.

sunchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 392944e12d4 HIVE-26478: Explicitly set Content-Type in QueryProfileServlet (#3527)
392944e12d4 is described below

commit 392944e12d40a5a53e6c549437650be87dd6259e
Author: yigress <10...@users.noreply.github.com>
AuthorDate: Fri Aug 19 14:05:21 2022 -0700

    HIVE-26478: Explicitly set Content-Type in QueryProfileServlet (#3527)
---
 .../src/java/org/apache/hive/service/servlet/QueryProfileServlet.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/service/src/java/org/apache/hive/service/servlet/QueryProfileServlet.java b/service/src/java/org/apache/hive/service/servlet/QueryProfileServlet.java
index f9133c4be74..fb38833b82e 100644
--- a/service/src/java/org/apache/hive/service/servlet/QueryProfileServlet.java
+++ b/service/src/java/org/apache/hive/service/servlet/QueryProfileServlet.java
@@ -53,7 +53,7 @@ public class QueryProfileServlet extends HttpServlet {
       LOG.debug("No display object found for operation {} ", opId);
       return;
     }
-
+    response.setContentType("text/html; charset=utf-8");
     new QueryProfileTmpl().render(response.getWriter(), queryInfo, hiveConf);
   }
 }