Procházet zdrojové kódy

Merge -r 597662:597663 from trunk to branch 0.15. Fixes: HADOOP-2238.


git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/branches/branch-0.15@597666 13f79535-47bb-0310-9956-ffa450edef68
Enis Soztutar před 17 roky
rodič
revize
1fa3115f0c

+ 2 - 0
CHANGES.txt

@@ -38,6 +38,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

@@ -261,6 +261,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");