Skip to content

Commit

Permalink
AMBARI-21084.Files view on IE 11- On Concatenating files or downloadi…
Browse files Browse the repository at this point in the history
…ng, the concatenated or downloaded file occupies the entire UI.(Venkata Sairam)
  • Loading branch information
venkatasairamlanka committed May 23, 2017
1 parent 32501f6 commit 7c92953
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public Response browse(@QueryParam("path") String path, @QueryParam("download")
ResponseBuilder result = Response.ok(fs);
if (download) {
result.header("Content-Disposition",
"inline; filename=\"" + status.getPath().getName() + "\"").type(MediaType.APPLICATION_OCTET_STREAM);
"attachment; filename=\"" + status.getPath().getName() + "\"").type(MediaType.APPLICATION_OCTET_STREAM);
} else {
FileNameMap fileNameMap = URLConnection.getFileNameMap();
String mimeType = fileNameMap.getContentTypeFor(status.getPath().getName());
Expand Down Expand Up @@ -278,7 +278,7 @@ public void write(OutputStream output) throws IOException,
};
ResponseBuilder response = Response.ok(result);
if (request.download) {
response.header("Content-Disposition", "inline; filename=\"concatResult.txt\"").type(MediaType.APPLICATION_OCTET_STREAM);
response.header("Content-Disposition", "attachment; filename=\"concatResult.txt\"").type(MediaType.APPLICATION_OCTET_STREAM);
} else {
response.header("Content-Disposition", "filename=\"concatResult.txt\"").type(MediaType.TEXT_PLAIN);
}
Expand Down

0 comments on commit 7c92953

Please sign in to comment.