From a9f67c46fac58c0926b42ef67c48b80e0fc4c843 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Thu, 29 Dec 2016 14:49:18 +0800 Subject: [PATCH] fix errorBuffer error for XMLHTTPRequest --- .../scripting/js-bindings/manual/network/XMLHTTPRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/scripting/js-bindings/manual/network/XMLHTTPRequest.cpp b/native/cocos/scripting/js-bindings/manual/network/XMLHTTPRequest.cpp index a207371a02..bf1b166505 100644 --- a/native/cocos/scripting/js-bindings/manual/network/XMLHTTPRequest.cpp +++ b/native/cocos/scripting/js-bindings/manual/network/XMLHTTPRequest.cpp @@ -213,7 +213,7 @@ void MinXmlHttpRequest::handle_requestResponse(cocos2d::network::HttpClient *sen if (!response->isSucceed()) { std::string errorBuffer = response->getErrorBuffer(); - CCLOG("Response failed, error buffer: %s", errorBuffer); + CCLOG("Response failed, error buffer: %s", errorBuffer.c_str()); if (statusCode == 0 || statusCode == -1) { _errorFlag = true;