From 12212dc572794091ec1cf9525c184979f1696ebe Mon Sep 17 00:00:00 2001 From: huangshiwu Date: Wed, 14 Jan 2015 14:01:58 +0800 Subject: [PATCH] fix HttpAsynConnection method didReciveResponse's process error --- cocos/network/HttpAsynConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/network/HttpAsynConnection.m b/cocos/network/HttpAsynConnection.m index cca536ea14..63892ff282 100755 --- a/cocos/network/HttpAsynConnection.m +++ b/cocos/network/HttpAsynConnection.m @@ -87,7 +87,7 @@ | “205” ; Reset Content | “206” ; Partial Content */ - if (responseCode >= 200 && responseCode < 300) + if (responseCode < 200 || responseCode >= 300) {// something went wrong, abort the whole thing [connection cancel];