Wrong assert logic fix in HttpClient. (#17330)

* Wrong assert logic fix in HttpClient.

* Updates assert prompt
This commit is contained in:
James Chen 2017-02-09 09:56:24 +08:00 committed by minggo
parent 828fabdeb3
commit 55a97f6107
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ void HttpClient::processResponse(HttpResponse* response, char* responseMessage)
break;
default:
CCASSERT(true, "CCHttpClient: unknown request type, only GET and POSt are supported");
CCASSERT(false, "CCHttpClient: unknown request type, only GET,POST,PUT or DELETE is supported");
break;
}

View File

@ -558,7 +558,7 @@ void HttpClient::processResponse(HttpResponse* response, char* responseMessage)
break;
default:
CCASSERT(true, "CCHttpClient: unknown request type, only GET and POSt are supported");
CCASSERT(false, "CCHttpClient: unknown request type, only GET,POST,PUT or DELETE is supported");
break;
}