Fixed crash when passing invalid JSON to request serialization by 0xced · Pull Request #3719 · AFNetworking/AFNetworking

@kcharwood kcharwood changed the title Do not crash when passing invalid JSON for serialization Fixed crash when passing invalid JSON for serialization

Oct 10, 2016

@0xced

Fixes #3711

The `NSURLErrorCannotDecodeContentData` code is not ideal, but `AFURLRequestSerializationErrorDomain` should define its own error codes anyway.

@kcharwood kcharwood changed the title Fixed crash when passing invalid JSON for serialization Fixed crash when passing invalid JSON to request serialization

Oct 10, 2016

@0xced 0xced deleted the fix-invalid-json-serialization-crash branch

October 11, 2016 21:29