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

Remove downcase! method from sanitize function in ContentTypeField #1399

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RemcodM
Copy link

@RemcodM RemcodM commented Jun 24, 2020

Fixes #1398

This change removes the sequence of code that downcases the Content-Type header value. If I should believe the specs, it should serve no purpose. Only 2 specs break because of the charset being returned in capital letters instead of downcased as before.

This fixes the problem is which encoding is broken by downcasing, such as the example with base64 provided in #1398

Fixes mikel#1398

This change removes the sequence of code that downcases the Content-Type header value.
If I should believe the specs, it should serve no purpose. Only 2 specs break because
of the charset being returned in capital letters instead of downcased as before.

This fixes the problem is which encoding is broken by downcasing, such as the example
with base64 provided in mikel#1398
@ahorek
Copy link
Contributor

ahorek commented Jun 24, 2020

nice find! I think you're right, the code should be removed. Could you add a test case according to your example to avoid further regressions?

@mikel
Copy link
Owner

mikel commented Dec 3, 2022

Hi there @RemcodM could you please rebase this onto latest master? This will then trigger all the current specs we have.

@mikel mikel added this to the 2.9.0 milestone Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sanitize function in ContentTypeField breaks encoding by using downcase!
3 participants