Selaa lähdekoodia

HADOOP-2238. Fix TaskGraphServlet so that it sets the content type of the response appropriately. Contibuted by Paul Saab.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@597663 13f79535-47bb-0310-9956-ffa450edef68
Enis Soztutar 17 vuotta sitten
vanhempi
commit
40bf19c7f2
2 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 2 0
      CHANGES.txt
  2. 2 0
      src/java/org/apache/hadoop/mapred/StatusHttpServer.java

+ 2 - 0
CHANGES.txt

@@ -183,6 +183,8 @@ Release 0.15.1 - 2007-11-27
     HADOOP-2246.  Moved the changelog for HADOOP-1851 from the NEW FEATURES 
     section to the INCOMPATIBLE CHANGES section. (acmurthy)
 
+    HADOOP-2238.  Fix TaskGraphServlet so that it sets the content type of 
+    the response appropriately.  (Paul Saab via enis)
 
 Release 0.15.0 - 2007-11-2
 

+ 2 - 0
src/java/org/apache/hadoop/mapred/StatusHttpServer.java

@@ -263,6 +263,8 @@ public class StatusHttpServer {
     public void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException {
 
+      response.setContentType("image/svg+xml");
+
       JobTracker tracker = 
         (JobTracker) getServletContext().getAttribute("job.tracker");