New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 upload should not set an empty content-type #519
Comments
Thanks for opening the issue. What are effects of not setting the |
if you don't set it when uploading, I think S3 automatically sets it to |
If MIME::Types can't figure out the type, skip setting the Content-Type header altogether. When downloading, Amazon should specify 'application/octet-stream'. Resolves #519
Please test it with: deploy:
provider: s3
edge:
branch: 's3-content-type'
⋮ # rest |
If MIME::Types can't figure out the type, skip setting the Content-Type header altogether. When downloading, Amazon should specify 'application/octet-stream'. Resolves #519
Actually, it does not set it to But omitting the content-type makes the file be downloaded by Firefox instead of being displayed as text as previously (which was very confusing when the file was not a text file). So I would vote +1 on your fix. |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
@stof @sylveon @peternewman You all have expressed interest in resolving this issue. Could you test the PR one last time, so that we can merge and release the fix? Thanks. |
Not guilty sorry @BanzaiMan aside from pointing out it's a duplicate to try and keep the issue list clean. |
@peternewman Sorry for the noise! |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
When the mime type is not known by the
mime-types
gem, it would be better to set aapplication/octet-stream
mime type than an empty string.The text was updated successfully, but these errors were encountered: