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

Fix content-type checker #285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

r4do
Copy link

@r4do r4do commented Mar 30, 2023

When having type="text/html" set inside content-type, it's being incorrectly detected as text/html.

Example: valid header Content-Type: multipart/related; type="text/html" being detected as pure HTML, causes an error

     Failure/Error: @premailer ||= CustomizedPremailer.new(html_part.decoded)

     NoMethodError:
       Can not decode an entire message, try calling #decoded on the various fields and body or parts if it is a multipart message.

               raise NoMethodError, 'Can not decode an entire message, try calling #decoded on the various fields and body or parts if it is a multipart message.'
               ^^^^^

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.

1 participant