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 encoding for request body #56

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Conversation

pheyken
Copy link
Contributor

@pheyken pheyken commented Mar 3, 2023

First of all, thank you very much for fixing #35 by moving to the Apache HTTP client!

While testing the new version, I noticed that special characters were not encoded correctly when sending an email.

Using setEntity without a ContentType defaults to text/plain with ISO 8859-1, explicitly setting it to application/json solves the encoding issue.

@ibalosh
Copy link
Contributor

ibalosh commented Mar 6, 2023

Thank you @pheyken

will see to check this out today

@ibalosh ibalosh merged commit 2bcea7b into ActiveCampaign:main Mar 6, 2023
@ibalosh
Copy link
Contributor

ibalosh commented Mar 6, 2023

thank you @pheyken for reproducing and creating integration test for the fix too!

@ibalosh
Copy link
Contributor

ibalosh commented Mar 6, 2023

Fix is applied to main, I am waiting for maven server to release it, they seem to have some issues, should be out in couple of hours

@ibalosh
Copy link
Contributor

ibalosh commented Mar 6, 2023

released

@pheyken pheyken deleted the utf8-encoding branch March 16, 2023 06:04
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