Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Check only content length, ignore status code. #90

Merged
merged 1 commit into from
Oct 25, 2011
Merged

Check only content length, ignore status code. #90

merged 1 commit into from
Oct 25, 2011

Conversation

dstnbrkr
Copy link
Contributor

Super trivial change to hasContent to make any response with non-0 content length return true for -(BOOL)hasContent. -(NSError *)error only checks response response mime-type if hasContent true, so this change allows any response with no content to skip mime type checking.

Per discussion here: https://github.com/gowalla/AFNetworking/pull/88#issuecomment-2486149.

mattt pushed a commit that referenced this pull request Oct 25, 2011
Check only content length, ignore status code.
@mattt mattt merged commit 4a6a93e into AFNetworking:master Oct 25, 2011
@mattt
Copy link
Contributor

mattt commented Oct 25, 2011

Huh, could've sworn I had taken that out earlier. Well thanks all the same :)

greghe pushed a commit to skillz/AFNetworking that referenced this pull request Sep 3, 2015
Check only content length, ignore status code.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants