{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14683","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14683/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14683/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14683/events","html_url":"https://github.com/cocos2d/cocos2d-x/pull/14683","id":122191322,"number":14683,"title":"[Issue 14677]Fix Downloader bug on iOS 9 that treats 403 Forbidden response as success","user":{"login":"cezheng","id":2549967,"avatar_url":"https://avatars.githubusercontent.com/u/2549967?v=3","gravatar_id":"","url":"https://api.github.com/users/cezheng","html_url":"https://github.com/cezheng","followers_url":"https://api.github.com/users/cezheng/followers","following_url":"https://api.github.com/users/cezheng/following{/other_user}","gists_url":"https://api.github.com/users/cezheng/gists{/gist_id}","starred_url":"https://api.github.com/users/cezheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cezheng/subscriptions","organizations_url":"https://api.github.com/users/cezheng/orgs","repos_url":"https://api.github.com/users/cezheng/repos","events_url":"https://api.github.com/users/cezheng/events{/privacy}","received_events_url":"https://api.github.com/users/cezheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-15T04:24:07Z","updated_at":"2015-12-15T10:48:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/14683","html_url":"https://github.com/cocos2d/cocos2d-x/pull/14683","diff_url":"https://github.com/cocos2d/cocos2d-x/pull/14683.diff","patch_url":"https://github.com/cocos2d/cocos2d-x/pull/14683.patch"},"body":"On iOS 9 when server returns a response with HTTP status 403 caused the\r\ndownloader to callback successfully and saving the error message to the\r\nstorage path. This commit adds a check on the HTTP status code and\r\ndo failure callback if status code is 4xx or 5xx.\r\n\r\n> This bug is due to the different behaviour of NSURLSession on iOS 8 and iOS 9 runtime. This commit makes them behave alike.\r\n\r\n> This is a fix for https://github.com/cocos2d/cocos2d-x/issues/14677"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/164724248","html_url":"https://github.com/cocos2d/cocos2d-x/pull/14683#issuecomment-164724248","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14683","id":164724248,"user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T10:48:07Z","updated_at":"2015-12-15T10:48:07Z","body":"This is a critical bug fix, I will create a test case and merge it into v3.10. @cezheng Thanks"}}