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 @@ 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();
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue