diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc index cac2e15a..24a0c2c3 100644 --- a/src/common/windows/http_upload.cc +++ b/src/common/windows/http_upload.cc @@ -140,8 +140,10 @@ bool HTTPUpload::SendRequest(const wstring &url, -1, HTTP_ADDREQ_FLAG_ADD); string request_body; - GenerateRequestBody(parameters, upload_file, - file_part_name, boundary, &request_body); + if (!GenerateRequestBody(parameters, upload_file, + file_part_name, boundary, &request_body)) { + return false; + } if (!HttpSendRequest(request.get(), NULL, 0, const_cast(request_body.data()),