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(meditype): remove trailing HTML tags #252

Conversation

dmytrokasianenko-outreach
Copy link
Contributor

@dmytrokasianenko-outreach dmytrokasianenko-outreach commented May 25, 2022

This PR intends to fix removing trailing HTML tag in MIME media part.

There is a problem with boundaries that are looking like multipart/alternative; boundary="<<<<boundary".
Current implementation was removing everything after < symbol, so it looks like multipart/alternative; boundary="", ending up with error unable to locate boundary param in Content-Type.

Hope I've covered most possible cases in tests.

@dmytrokasianenko-outreach dmytrokasianenko-outreach force-pushed the dmytrokasianenko-outreach/fix/remove-trainling-tags branch 3 times, most recently from 02204de to 0421544 Compare May 25, 2022 12:42
mediatype/mediatype_test.go Outdated Show resolved Hide resolved
@dmytrokasianenko-outreach dmytrokasianenko-outreach force-pushed the dmytrokasianenko-outreach/fix/remove-trainling-tags branch from 0421544 to 2316cc1 Compare May 26, 2022 15:58
@jhillyerd jhillyerd merged commit f8aba51 into jhillyerd:master May 26, 2022
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

2 participants