Fixed status code 204/205 handling by kcharwood · Pull Request #3292 · AFNetworking/AFNetworking
If a server returned a 205 with no response content type and no response data, the response serializer would fail. This patch allows response serialization to continue without error if no response content type header is defined, and there are zero bytes of response of data. If the server returns a response content type header OR response data, the serializar will respect the old serialization logic. This means that if a response content type is listed in the header, we are expecting some type of data response.
changed the title
Fixed status code 205 handling
Fixed status code 204/205 handling
kcharwood added a commit that referenced this pull request
Mar 14, 2016This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters