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

This commit is contained in:
Varun Vasudev 2016-05-25 18:58:01 +05:30
parent c380a22031
commit 9a31e5dfef
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); ResponseBuilder response = Response.ok(stream);
if (downloadFile) { if (downloadFile) {
response.header("Content-Type", "application/octet-stream"); response.header("Content-Type", "application/octet-stream");
response.header("Content-Disposition", "attachment; filename="
+ fileName);
} }
return response.build(); return response.build();
} }

View File

@ -255,8 +255,6 @@ public void write(OutputStream os) throws IOException,
ResponseBuilder resp = Response.ok(stream); ResponseBuilder resp = Response.ok(stream);
if (downloadFile) { if (downloadFile) {
resp.header("Content-Type", "application/octet-stream"); resp.header("Content-Type", "application/octet-stream");
resp.header("Content-Disposition", "attachment; filename="
+ logFile.getName());
} }
return resp.build(); return resp.build();
} catch (IOException ex) { } catch (IOException ex) {