When I’m sending POST requests in my Angular application with the body beeing a boolean, in the case it is true it is correctly send in the payload, in the case it is false no payload is send with the request.
constructor(
public readonly http: HttpClient,
) {
const requestBody = false;
http..request({
method: 'POST',
url: '/locked',
body: requestBody,
mediaType: 'application/json',
});
}
Is there a way to send boolean base types directly with false value?