You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per iana official list, the content-type would be application/gzip. It differs from v1. I made a put call and it works fine. Do you have any issues with it?
Expected Behavior
In the V1 SDK, PutObjectRequest would set the content-type to application/x-gzip if I uploaded a .gz file.
Current Behavior
In V2, it sets to the default application/octet-stream
Possible Solution
It looks like this was more broadly looked at in #442 and a mime.types file was created, but this has no mapping for gz
Steps to Reproduce (for bugs)
client.putObject(PutObjectRequest.builder().bucket(awsBucketName).key(key).build(), RequestBody.fromFile(localFile));
(in the above instance, localFile is a Path to a file ending in .gz)
Your Environment
The text was updated successfully, but these errors were encountered: