Skip to content

Commit

Permalink
Bug fixed for issue #5, #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Zubin Kang committed Dec 26, 2016
1 parent 01bae81 commit 32802bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions XMNetworking/Core/XMEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion XMNetworking/Core/XMRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 32802bd

Please sign in to comment.