diff options
Diffstat (limited to 'TimXmlRpc.cpp')
-rw-r--r-- | TimXmlRpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TimXmlRpc.cpp b/TimXmlRpc.cpp index 1b304d0..c57eaf6 100644 --- a/TimXmlRpc.cpp +++ b/TimXmlRpc.cpp @@ -1539,10 +1539,10 @@ RETRY: // Add the 'Content-Type' && 'Content-length' headers char header[255]; // Thanks, Anthony Chan. sprintf_s(header, "Content-Type: text/xml\r\nContent-length: %d", ostr.str().size()); - HttpAddRequestHeaders(hHttpFile, header, strlen(header), HTTP_ADDREQ_FLAG_ADD); + HttpAddRequestHeaders(hHttpFile, header, (DWORD)strlen(header), HTTP_ADDREQ_FLAG_ADD); // Send the request: - if (! HttpSendRequest(hHttpFile, NULL, 0, (LPVOID)ostr.str().c_str(), ostr.str().size())) { + if (! HttpSendRequest(hHttpFile, NULL, 0, (LPVOID)ostr.str().c_str(), (DWORD)ostr.str().size())) { hadError("HttpSendRequest"); return false; } |