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 stringify_headers so it can handle hyphenated symbols #650

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

Conversation

jschwertfeger
Copy link

stringify_headers incorrectly assumed symbolized header keys only use underscores for separating words. However, symbols may also contain hyphens for that purpose. E.g. {'Content-Type': 'application/json'} has to be treated the same way as {:content_type => 'application/json'}.

…s into strings (like it does with underscores already)
@ab ab self-assigned this Aug 22, 2019
@ab ab added this to the 2.2.x milestone Aug 22, 2019
@cben
Copy link

cben commented Aug 25, 2019

In what way does this break compatibility? If it does, maybe it can't go into 2.x?

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.

None yet

3 participants