- a little cleanup of request parameters
This commit is contained in:
parent
c3e40ca1e5
commit
909b680836
|
@ -2616,14 +2616,20 @@ void MenuStateCustomGame::simpleTask(BaseThread *callingThread) {
|
|||
|
||||
//CURL *handle = SystemFlags::initHTTP();
|
||||
CURL *handle = callingThread->getGenericData<CURL>();
|
||||
|
||||
int paramIndex = 0;
|
||||
for(std::map<string,string>::const_iterator iterMap = newPublishToServerInfo.begin();
|
||||
iterMap != newPublishToServerInfo.end(); ++iterMap) {
|
||||
|
||||
request += iterMap->first;
|
||||
request += "=";
|
||||
request += SystemFlags::escapeURL(iterMap->second,handle);
|
||||
|
||||
paramIndex++;
|
||||
if(paramIndex < newPublishToServerInfo.size()) {
|
||||
request += "&";
|
||||
}
|
||||
}
|
||||
|
||||
//printf("the request is:\n%s\n",request.c_str());
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] the request is:\n%s\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,request.c_str());
|
||||
|
|
Loading…
Reference in New Issue
Block a user