Skip to content

Commit

Permalink
support web browsing of dirindex IQSS#7823
Browse files Browse the repository at this point in the history
Previously, .index.html files were being downloaded as attachments.
  • Loading branch information
pdurbin committed May 21, 2021
1 parent b95ba34 commit b264970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public Response getFileAccessFolderView(@PathParam("id") String datasetId, @Quer

String indexFileName = folderName.equals("") ? ".index.html"
: ".index-" + folderName.replace('/', '_') + ".html";
response.setHeader("Content-disposition", "attachment; filename=\"" + indexFileName + "\"");
response.setHeader("Content-disposition", "filename=\"" + indexFileName + "\"");


return Response.ok()
Expand Down

0 comments on commit b264970

Please sign in to comment.