diff --git a/XMNetworking/Core/XMEngine.m b/XMNetworking/Core/XMEngine.m index f180807..09a25d9 100644 --- a/XMNetworking/Core/XMEngine.m +++ b/XMNetworking/Core/XMEngine.m @@ -378,8 +378,7 @@ - (AFJSONResponseSerializer *)afJSONResponseSerializer { if (!_afJSONResponseSerializer) { _afJSONResponseSerializer = [AFJSONResponseSerializer serializer]; // Append more other commonly-used types to the JSON responses accepted MIME types. - _afJSONResponseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/html", @"text/plain", nil]; - + //_afJSONResponseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/html", @"text/plain", nil]; } return _afJSONResponseSerializer; } diff --git a/XMNetworking/Core/XMRequest.m b/XMNetworking/Core/XMRequest.m index dd12bb3..ac96db1 100644 --- a/XMNetworking/Core/XMRequest.m +++ b/XMNetworking/Core/XMRequest.m @@ -231,7 +231,7 @@ - (void)onFinishedOneRequest:(XMRequest *)request response:(id)responseObject er } } else { XM_SAFE_BLOCK(_chainSuccessBlock, _responseArray); - XM_SAFE_BLOCK(_chainFinishedBlock, nil, _responseArray); + XM_SAFE_BLOCK(_chainFinishedBlock, _responseArray, nil); [self cleanCallbackBlocks]; } } else {