aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows/http_upload.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/windows/http_upload.cc')
-rw-r--r--src/common/windows/http_upload.cc6
1 files changed, 4 insertions, 2 deletions
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<char *>(request_body.data()),