I'm starting to learn D by writing a client for a RESTful API. I found something that seems wrong to me. When I use writeJsonBody to send my data to the server I receive a 411 error. If I send the same data by setting the content type and length myself it works just fine. So, I pulled up Wireshark and found that the Transfer-Encoding is being set to chunked. Looking at the code for writeJsonBody I see that it always sets the transfer encoding to chunked.

Is there a reason for this? If so, what should I be doing differently?