Add Content-Length to header if there's post data.