Fixed parameter names and missing / in URL (which is required).
This commit is contained in:
parent
13402543ce
commit
c7650ba769
@ -63,11 +63,12 @@ void reportHardwareStats()
|
|||||||
|
|
||||||
Online::HTTPRequest *request = new Online::HTTPRequest(/*manage memory*/true, 1);
|
Online::HTTPRequest *request = new Online::HTTPRequest(/*manage memory*/true, 1);
|
||||||
request->addParameter("user_id", 3);
|
request->addParameter("user_id", 3);
|
||||||
request->addParameter("generation_date", StkTime::getTimeSinceEpoch());
|
request->addParameter("time", StkTime::getTimeSinceEpoch());
|
||||||
request->addParameter("data_type", "hwdetect");
|
request->addParameter("type", "hwdetect");
|
||||||
request->addParameter("data_version", 1);
|
request->addParameter("version", 1);
|
||||||
request->addParameter("data", json.toString());
|
request->addParameter("data", json.toString());
|
||||||
request->setURL("http://stats.supertuxkart.net/upload/v1");
|
request->setURL("http://stats.supertuxkart.net/upload/v1/");
|
||||||
|
//request->setURL("http://127.0.0.1:8000/upload/v1/");
|
||||||
// FIXME: For now: don't submit
|
// FIXME: For now: don't submit
|
||||||
//request->queue();
|
//request->queue();
|
||||||
} // reportHardwareStats
|
} // reportHardwareStats
|
||||||
|
Loading…
Reference in New Issue
Block a user