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:
parent
36f2ae0692
commit
5361a91909
@ -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();
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user