VW 7.10
"Shaping" <[email protected]> Mon, 5 Sep 2022 01:45:22 -0500
| Newsgroups | gmane.comp.lang.smalltalk.vwnc |
|---|---|
| Message-ID | <[email protected]> |
Hi. Has anyone noticed that HttpClient, when preparing a POST HttpRequest with a JSON payload, doesn’t set the request’s ContentType to ‘application/json’, as it should? Instead the default ‘text/plain’ remains. The client isn’t making any effort to check the body’s payload, discover that its JSON, and then set the ContentType. I was able to get the request to work by hacking-in the correct ContentType, but this clearly needs to be done more carefully in the right place. Is this, by any chance, a known problem, and has it been fixed? Shaping