Skip to content

[Notifier] Fix encoding of messages with FreeMobileTransport #45185

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

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Jan 26, 2022

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix sending accents chars
License MIT

When I first introduce this transport I used to test it with basic text, now with some French accent I need this fix otherwise the accent chars are not sent

@@ -60,7 +60,7 @@ protected function doSend(MessageInterface $message): SentMessage
$endpoint = sprintf('https://%s', $this->getEndpoint());

$response = $this->client->request('POST', $endpoint, [
'json' => [
'query' => [
Copy link
Member

Choose a reason for hiding this comment

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

can you please try using body here instead?
if we keep query, can we keep POST or do we need GET as a method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

commented on other discu #45185 (comment)
with query and POST it works well

@carsonbot carsonbot changed the title Update FreeMobileTransport.php [Notifier] Update FreeMobileTransport.php Jan 26, 2022
@nicolas-grekas nicolas-grekas changed the title [Notifier] Update FreeMobileTransport.php [Notifier] Fix encoding of messages with FreeMobileTransport Jan 26, 2022
@nicolas-grekas nicolas-grekas modified the milestones: 5.4, 5.3 Jan 26, 2022
@nicolas-grekas
Copy link
Member

Thank you @94noni.

@nicolas-grekas nicolas-grekas merged commit 4565edb into symfony:5.3 Jan 26, 2022
@94noni 94noni deleted the patch-1 branch January 26, 2022 15:40
This was referenced Jan 28, 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.

4 participants