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

[Notifier] Fix encoding of messages with FreeMobileTransport #45185

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

@94noni 94noni requested a review from OskarStark as a code owner Jan 26, 2022
@carsonbot carsonbot added this to the 5.4 milestone Jan 26, 2022
@@ -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

@nicolas-grekas nicolas-grekas Jan 26, 2022

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

@94noni 94noni Jan 26, 2022

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

nicolas-grekas commented Jan 26, 2022

Thank you @94noni.

@nicolas-grekas nicolas-grekas merged commit 4565edb into symfony:5.3 Jan 26, 2022
1 check passed
@94noni 94noni deleted the patch-1 branch Jan 26, 2022
This was referenced Jan 28, 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants