mirror of https://github.com/axmolengine/axmol.git
issue #3049:Add XMLHttpRequest lua binding and corresponding test sample
This commit is contained in:
parent
663b27d1e7
commit
471bbb8af9
|
@ -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());
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
# project structure.
|
||||
|
||||
# Project target.
|
||||
target=android-15
|
||||
target=android-10
|
||||
|
||||
android.library.reference.1=../../../../cocos/2d/platform/android/java
|
||||
|
|
Loading…
Reference in New Issue