Skip to content

Commit

Permalink
Merge pull request #124 from GenomicDataInfrastructure/add-content-di…
Browse files Browse the repository at this point in the history
…sposition

chore: add content disposition and length in headers for binary
  • Loading branch information
brunopacheco1 authored Sep 26, 2024
2 parents e4df1f2 + ecb6840 commit 6fd4e09
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public Response retrieveDatasetInFormat(String id, String format) {
return Response
.ok(content)
.type(type)
.header("Content-Disposition", "attachment; filename=\"" + id + "." + format + "\"")
.header("Content-Length", content.length())
.build();
}

Expand Down

0 comments on commit 6fd4e09

Please sign in to comment.