…e thread safety
…as cases like 'startAnimating' getting called from two seperate threads. Each would read a value A. The first thread would then write the value A+1. Thread 2 also read A so it would also write A+1. As a result missing an increment
…n thread and background threads. Also making the increment and decrement for AFNetworkActivityIndicatorManager thread safe since start/stopAnimating are called from different threads.
Only check HTTP status code if network error did not occur
…n error passed in to the completion block. Otherwise network errors are overwritten by a faulty error stating the HTTP status code is 0.
Renaming progressBlock to uploadProgressBlock
… rather than spinning up new run loops for each request
…ing -start on an operation
Handle responses with no content (ex. http status code 204)
…activityCount) is enforced as expected
…ocessing Conflicts: AFNetworking/AFHTTPRequestOperation.m AFNetworking/AFImageRequestOperation.m AFNetworking/AFJSONRequestOperation.m
…d to monitor the progress of POST data being sent in a file upload, for instance
… of the cache
Fixes exception when attempting to parse empty response data (i.e. HTTP Status Code 204 No Content).
…e in particular run loops
… to prevent it from immediately exiting
…JSONRequestOperation to include request and response objects