Merge pull request #9981 from huangshiwu/v3_ioshttp

fix HttpAsynConnection method didReciveResponse's process error
This commit is contained in:
Huabing.Xu 2015-01-14 14:07:31 +08:00
commit 6850c7497b
1 changed files with 1 additions and 1 deletions

View File

@ -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];