hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1079164 - /hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/http/HttpServer.java
Date Tue, 08 Mar 2011 04:41:11 GMT
Author: omalley
Date: Tue Mar  8 04:41:10 2011
New Revision: 1079164

URL: http://svn.apache.org/viewvc?rev=1079164&view=rev
Log:
commit 7bd9b6bf42e999c311388902d39e0f0c643c264e
Author: Luke Lu <llu@yahoo-inc.com>
Date:   Thu Jan 20 04:31:46 2011 -0800

      No need to escape plain text

Modified:
    hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/http/HttpServer.java

Modified: hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/http/HttpServer.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/http/HttpServer.java?rev=1079164&r1=1079163&r2=1079164&view=diff
==============================================================================
--- hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/http/HttpServer.java (original)
+++ hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/http/HttpServer.java Tue
Mar  8 04:41:10 2011
@@ -732,16 +732,13 @@ public class HttpServer implements Filte
     @Override
     public void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException {
-
+      response.setContentType("text/plain; charset=UTF-8");
       // Do the authorization
       if (!HttpServer.hasAdministratorAccess(getServletContext(), request,
           response)) {
         return;
       }
-      response.setContentType("text/plain; charset=utf-8");
-
-      PrintWriter out = new PrintWriter
-                    (HtmlQuoting.quoteOutputStream(response.getOutputStream()));
+      PrintWriter out = response.getWriter();
       ReflectionUtils.printThreadInfo(out, "");
       out.close();
       ReflectionUtils.logThreadInfo(LOG, "jsp requested", 1);      



Mime
View raw message