Skip to content

Conversation

@beniciojunior
Copy link

I'm using AFDownloadRequestOperation on my project, but when it receives 416 HTTP status (Requested Range Not Satisfiable), the success block is being called. So I created this fix: every time responseObject is accessed, it validates the response using the (default) responseSerializer, which checks acceptable HTTP status codes.

Adding to that, I removed + acceptableStatusCodes method that is not called on AFNetworking 2.0.

I hope this helps.

@brunokoga
Copy link

I had a similar issue (getting 403 from the server) and this fixed it.

So, thanks @beniciojunior 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants