YARN-5115. Avoid setting CONTENT-DISPOSITION header in the container-logs web-service. Contributed by Xuan Gong.

(cherry picked from commit c52c15dd2df5050c6c3ddbe5ee708404f1920721)
This commit is contained in:
Varun Vasudev 2016-05-25 18:58:01 +05:30
parent 36f2ae0692
commit 5361a91909
2 changed files with 0 additions and 4 deletions

View File

@ -312,8 +312,6 @@ private Response sendStreamOutputResponse(ApplicationId appId,
ResponseBuilder response = Response.ok(stream);
if (downloadFile) {
response.header("Content-Type", "application/octet-stream");
response.header("Content-Disposition", "attachment; filename="
+ fileName);
}
return response.build();
}

View File

@ -255,8 +255,6 @@ public void write(OutputStream os) throws IOException,
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) {