Webhook delivery errors when length is incorrect

So I just replicated this error locally with curl based upon the last failing webhook I saw. I extracted the JSON POST body, minified it, and sent it along with the headers Discourse used when sending the data. I saw that upon minifying the JSON POST body, it was not the same size in bytes as the Content-Length header used by Discourse, so my curl command failed. When I changed the Content-Length to match the number of bytes actually in the POST body, it worked.

So the problem is that the Content-Length sometimes does not match the number of bytes in the POST body, causing JSON parsing to fail because the entirely of the JSON CLOB was not loaded.