Hi guys, tearing my hair out with this one. I'm trying to do a HTTP POST request with a JSON body. Seems straight forward and there is even an example in the Vibe docs. However the body never seems to make it through to the server. In order to make sure I wasn't doing something stupid (always a possibility) I modified the http_request example like so:

import vibe.core.log;
import vibe.http.client;

void main()
{
	requestHTTP("http://requestb.in/ny54b8ny",
		(scope req) {
			req.method = HTTPMethod.POST;
			req.writeJsonBody(["name": "My Name"]);
		},
		(scope res) {
			logInfo("Response: %d", res.statusCode);
			foreach (k, v; res.headers)
				logInfo("Header: %s: %s", k, v);
		}
	);
}

Checking the requestbin the json headers are set correctly but the RAW body is empty. Just as I am experiencing with my main project. I may just be missing something, can anybody help out please?