mirror of
https://github.com/glest/glest-source.git
synced 2025-02-26 04:32:22 +01:00
- a little cleanup of request parameters
This commit is contained in:
parent
c3e40ca1e5
commit
909b680836
@ -2616,13 +2616,19 @@ 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);
|
||||
request += "&";
|
||||
|
||||
paramIndex++;
|
||||
if(paramIndex < newPublishToServerInfo.size()) {
|
||||
request += "&";
|
||||
}
|
||||
}
|
||||
|
||||
//printf("the request is:\n%s\n",request.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user