Skip to content
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

Set correct mime type for cover #10

Merged
merged 5 commits into from
Nov 28, 2019
Merged

Conversation

opsidao
Copy link
Contributor

@opsidao opsidao commented Nov 26, 2019

When generating the cover in the supported version of carrierwave, the content type is set to the one from the original file (PDF), not from the transformed one.

This generates CORB issues when serving the images inside iframes, so here I enforce the content type of the generated file manually.

I also add the missing entries to the changelog and do some minimal adaptation to the current versions of some dependencies.

@opsidao opsidao force-pushed the set-correct-mime-type-for-cover branch from 2bee9c1 to 158bebd Compare November 26, 2019 16:42
Copy link
Contributor

@bacchir bacchir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job :)

@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## [0.3.1] - 2019-11-26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 158bebd on set-correct-mime-type-for-cover into 994e59e on master.

@opsidao opsidao merged commit ef4229a into master Nov 28, 2019
@opsidao opsidao deleted the set-correct-mime-type-for-cover branch November 28, 2019 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants