diff options
-rw-r--r-- | src/common/windows/http_upload.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc index 6bda3b92..d93f4cfd 100644 --- a/src/common/windows/http_upload.cc +++ b/src/common/windows/http_upload.cc @@ -137,7 +137,8 @@ bool HTTPUpload::SendRequest(const wstring &url, wstring content_type_header = GenerateRequestHeader(boundary); HttpAddRequestHeaders(request.get(), content_type_header.c_str(), - -1, HTTP_ADDREQ_FLAG_ADD); + static_cast<DWORD>(-1), + HTTP_ADDREQ_FLAG_ADD); string request_body; if (!GenerateRequestBody(parameters, upload_file, |