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

Strip newlines/whitespace from fragment before processing mime_type #844

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

strfry
Copy link
Contributor

@strfry strfry commented Oct 1, 2018

Due to the new seed format, even single-lined text fields can contain newlines after importing.
This may confuse Rails into sending multiple Content-Type headers, and won't work as expected.

Simple solution: Strip whitespaces from the mime_type fragment.

@GBH GBH merged commit 951f243 into comfy:master Oct 1, 2018
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.

2 participants