Skip to content

Commit

Permalink
chore: add content disposition and length in headers for binary
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopacheco1 committed Sep 26, 2024
1 parent e4df1f2 commit ecb6840
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 ecb6840

Please sign in to comment.