Skip to content

Commit

Permalink
Merge pull request #700 from cantaloupe-project/bugfix/s3-content-type
Browse files Browse the repository at this point in the history
Include S3 object content type in attributes
  • Loading branch information
ksclarke authored Sep 11, 2024
2 parents 2d8d974 + 08ff26a commit 1bffd1f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ private S3ObjectAttributes getObjectAttributes() throws IOException {
.build());
objectAttributes = new S3ObjectAttributes();
objectAttributes.length = response.contentLength();
objectAttributes.contentType = response.contentType();
objectAttributes.lastModified = response.lastModified();
} catch (NoSuchBucketException | NoSuchKeyException e) {
throw new NoSuchFileException(info.toString());
Expand Down

0 comments on commit 1bffd1f

Please sign in to comment.