From 55a97f6107af4bcf1ada5f3a7502baf7563ef7ca Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 9 Feb 2017 09:56:24 +0800 Subject: [PATCH] Wrong assert logic fix in HttpClient. (#17330) * Wrong assert logic fix in HttpClient. * Updates assert prompt --- cocos/network/HttpClient-apple.mm | 2 +- cocos/network/HttpClient.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/network/HttpClient-apple.mm b/cocos/network/HttpClient-apple.mm index 25c2b13d4d..9c9139c290 100644 --- a/cocos/network/HttpClient-apple.mm +++ b/cocos/network/HttpClient-apple.mm @@ -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; } diff --git a/cocos/network/HttpClient.cpp b/cocos/network/HttpClient.cpp index 0e34d560cf..935ccd71e8 100644 --- a/cocos/network/HttpClient.cpp +++ b/cocos/network/HttpClient.cpp @@ -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; }