Skip to content

Commit

Permalink
doc: update s3 quickstart (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoiueFragosoUwUr authored Mar 26, 2024
1 parent d9f3101 commit d401749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/amazon-s3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public class S3SyncClientResource extends CommonResource {
@Produces(MediaType.APPLICATION_OCTET_STREAM)
public Response downloadFile(String objectKey) {
ResponseBytes<GetObjectResponse> objectBytes = s3.getObjectAsBytes(buildGetRequest(objectKey));
ResponseBuilder response = Response.ok(objectBytes.asUtf8String());
Response.ResponseBuilder response = Response.ok(objectBytes.asByteArray());
response.header("Content-Disposition", "attachment;filename=" + objectKey);
response.header("Content-Type", objectBytes.response().contentType());
return response.build();
Expand Down

0 comments on commit d401749

Please sign in to comment.