Merge branch 'network_bugfix2' of github.com:seobyeongky/cocos2d-x into network_bugfix2

This commit is contained in:
byeonggee.seo 2015-03-03 16:33:48 +09:00
commit b3335f34ae
1 changed files with 6 additions and 7 deletions

View File

@ -89,13 +89,12 @@
| 205 ; Reset Content
| 206 ; Partial Content
*/
// if (responseCode < 200 || responseCode >= 300)
// {// something went wrong, abort the whole thing
// [connection cancel];
// finish = true;
// return;
// }
if (responseCode < 200 || responseCode >= 300)
{// something went wrong, abort the whole thing
self.responseError = [NSError errorWithDomain:@"CCBackendDomain"
code:responseCode
userInfo:@{NSLocalizedDescriptionKey: @"Bad HTTP Response Code"}];
}
[responseData setLength:0];
}