HADOOP-11005. Fix HTTP content type for ReconfigurationServlet. Contributed by Lei Xu.

(cherry picked from commit 7119bd49c8)
This commit is contained in:
Andrew Wang 2014-08-28 17:39:50 -07:00
parent ed2a997f49
commit 7cdb619cc5
2 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,9 @@ Release 2.6.0 - UNRELEASED
HADOOP-10880. Move HTTP delegation tokens out of URL querystring to
a header. (tucu)
HADOOP-11005. Fix HTTP content type for ReconfigurationServlet.
(Lei Xu via wang)
OPTIMIZATIONS
HADOOP-10838. Byte array native checksumming. (James Thomas via todd)

View File

@ -200,6 +200,7 @@ private void applyChanges(PrintWriter out, Reconfigurable reconf,
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
LOG.info("GET");
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
Reconfigurable reconf = getReconfigurable(req);
@ -214,6 +215,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
LOG.info("POST");
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
Reconfigurable reconf = getReconfigurable(req);