MXS-1220: Fix upload data processing

The uploaded data is not a null-terminated string.
This commit is contained in:
Markus Mäkelä
2017-04-21 09:06:23 +03:00
committed by Markus Mäkelä
parent 50eafe19fe
commit bcc3f11c4b

View File

@ -67,7 +67,7 @@ int Client::process(string url, string method, const char* upload_data, size_t *
if (*upload_size) if (*upload_size)
{ {
m_data += upload_data; m_data.append(upload_data, *upload_size);
*upload_size = 0; *upload_size = 0;
return MHD_YES; return MHD_YES;
} }