issue #3049:Add XMLHttpRequest lua binding and corresponding test sample

This commit is contained in:
samuelhu 2013-10-29 18:21:15 +08:00
parent 663b27d1e7
commit 471bbb8af9
2 changed files with 1 additions and 5 deletions

View File

@ -209,10 +209,6 @@ void LuaMinXmlHttpRequest::handle_requestResponse(network::HttpClient *sender, n
/** get the response data **/
std::vector<char> *buffer = response->getResponseData();
// for (unsigned int i = 0; i < buffer->size(); i++)
// {
// printf("%c", (*buffer)[i]);
// }
char* concatenated = (char*) malloc(buffer->size() + 1);
std::string s2(buffer->begin(), buffer->end());
strcpy(concatenated, s2.c_str());

View File

@ -8,6 +8,6 @@
# project structure.
# Project target.
target=android-15
target=android-10
android.library.reference.1=../../../../cocos/2d/platform/android/java