YARN-5115. Avoid setting CONTENT-DISPOSITION header in the container-logs web-service. Contributed by Xuan Gong.
This commit is contained in:
parent
c380a22031
commit
9a31e5dfef
@ -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…
Reference in New Issue
Block a user