fix
This commit is contained in:
parent
5575a50a32
commit
b64702260f
|
|
@ -252,7 +252,7 @@ XmlRpcClient::generateHeader(std::string const& body)
|
||||||
header += buff;
|
header += buff;
|
||||||
header += "Content-Type: text/xml\r\nContent-length: ";
|
header += "Content-Type: text/xml\r\nContent-length: ";
|
||||||
|
|
||||||
sprintf(buff,"%d\r\n\r\n", body.size());
|
sprintf(buff,"%d\r\n\r\n", (int)body.size());
|
||||||
|
|
||||||
return header + buff;
|
return header + buff;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -348,7 +348,7 @@ XmlRpcServerConnection::generateHeader(std::string const& body)
|
||||||
"Content-length: ";
|
"Content-length: ";
|
||||||
|
|
||||||
char buffLen[40];
|
char buffLen[40];
|
||||||
sprintf(buffLen,"%d\r\n\r\n", body.size());
|
sprintf(buffLen,"%d\r\n\r\n", (int)body.size());
|
||||||
|
|
||||||
return header + buffLen;
|
return header + buffLen;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user