You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty string is not valid JSON; this is probably why you get an error from your API. You should start by fixing that either by changing the Content-Type or the content depending on what the API expects.
You’re probably right @MatTheCat , what I’m trying to note here is that the behavior is changed in a minor release after a bug fixing release. And nowhere you can see a warning about that.
Also, if I send an empty body you don’t see an error from the HttpClient package, so it seems legit to use that.
I think it’s better to ask ourselves if this bug fix create a collateral effect and it’s expected or not.
#59763 is actually fixing a regression: what you see as a new behavior is actually restoring a previous one, and a correct one.
You should fix you code, sorry :)
Symfony version(s) affected
6.4.19
Description
Hi, I've this piece of code:
Before 6.4.19 it was working. Now I see an error from the remote API that body is not sent.
I think it's related to #59763
How to reproduce
Update to 6.4.19, call a URL using POST and empty body
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: