mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9981 from huangshiwu/v3_ioshttp
fix HttpAsynConnection method didReciveResponse's process error
This commit is contained in:
commit
6850c7497b
|
@ -87,7 +87,7 @@
|
||||||
| “205” ; Reset Content
|
| “205” ; Reset Content
|
||||||
| “206” ; Partial Content
|
| “206” ; Partial Content
|
||||||
*/
|
*/
|
||||||
if (responseCode >= 200 && responseCode < 300)
|
if (responseCode < 200 || responseCode >= 300)
|
||||||
{// something went wrong, abort the whole thing
|
{// something went wrong, abort the whole thing
|
||||||
|
|
||||||
[connection cancel];
|
[connection cancel];
|
||||||
|
|
Loading…
Reference in New Issue