hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vvasu...@apache.org
Subject [4/4] hadoop git commit: YARN-5115. Avoid setting CONTENT-DISPOSITION header in the container-logs web-service. Contributed by Xuan Gong.
Date Wed, 25 May 2016 13:31:38 GMT
YARN-5115. Avoid setting CONTENT-DISPOSITION header in the container-logs web-service. Contributed
by Xuan Gong.

(cherry picked from commit c52c15dd2df5050c6c3ddbe5ee708404f1920721)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5361a919
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5361a919
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5361a919

Branch: refs/heads/branch-2
Commit: 5361a919094ce14e1e349f66e02e70376ab349fd
Parents: 36f2ae0
Author: Varun Vasudev <vvasudev@apache.org>
Authored: Wed May 25 18:58:01 2016 +0530
Committer: Varun Vasudev <vvasudev@apache.org>
Committed: Wed May 25 19:01:22 2016 +0530

----------------------------------------------------------------------
 .../server/applicationhistoryservice/webapp/AHSWebServices.java    | 2 --
 .../hadoop/yarn/server/nodemanager/webapp/NMWebServices.java       | 2 --
 2 files changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5361a919/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/AHSWebServices.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/AHSWebServices.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/AHSWebServices.java
index deae894..e422c35 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/AHSWebServices.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/AHSWebServices.java
@@ -312,8 +312,6 @@ public class AHSWebServices extends WebServices {
     ResponseBuilder response = Response.ok(stream);
     if (downloadFile) {
       response.header("Content-Type", "application/octet-stream");
-      response.header("Content-Disposition", "attachment; filename="
-          + fileName);
     }
     return response.build();
   }

http://git-wip-us.apache.org/repos/asf/hadoop/blob/5361a919/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
index 57e729c..5c66511 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
@@ -255,8 +255,6 @@ public class NMWebServices {
       ResponseBuilder resp = Response.ok(stream);
       if (downloadFile) {
         resp.header("Content-Type", "application/octet-stream");
-        resp.header("Content-Disposition", "attachment; filename="
-            + logFile.getName());
       }
       return resp.build();
     } catch (IOException ex) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message