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

Honor Content-Type charset #13

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

xkwd
Copy link
Contributor

@xkwd xkwd commented Dec 2, 2021

Description

Closes #6

The Net::HTTP adapter does not seem to do any encoding transformation of the body string when the Content-Type charset is given. Forcing encoding on the response body has been picked as a workaround for that.

@@ -5,7 +5,7 @@ require:
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.4
TargetRubyVersion: 2.6
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this based on the minimum Ruby version in that matrix

Copy link
Member

@iMacTia iMacTia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this @xkwd and for adding test coverage as well 🎉
LGTM 💯 🙌

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.

honor Content-Type charset
2 participants