5 ms·
To my mind, as long as the Content-type header is set, the server should try to parse the body accordingly. In the case of JSON, an empty body cannot be a JSON
by clementd 13y ago
To my mind, as long as the Content-type header is set, the server should try to parse the body accordingly.
In the case of JSON, an empty body cannot be a JSON representation, but for other formats an empty body can have a meaning.
- clementd 13y agoFor instance for a plain text content-type, no string != empty string