mirror of https://github.com/axmolengine/axmol.git
Merge branch 'network_bugfix2' of github.com:seobyeongky/cocos2d-x into network_bugfix2
This commit is contained in:
commit
b3335f34ae
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue