Commit graph

272 commits

Author SHA1 Message Date
Mattt Thompson
67d8d043c9 Merge pull request #84 from dstnbrkr/return-http-error-or-json-error
Return JSON error or HTTP error.
2011-10-21 09:12:53 -07:00
Mattt Thompson
e85756ff4c Merge branch 'ignore-content-type' of https://github.com/dstnbrkr/AFNetworking into dstnbrkr-ignore-content-type
Conflicts:
	AFNetworking/AFHTTPRequestOperation.m
2011-10-21 11:09:15 -05:00
dstnbrkr
256704ee96 Ignore content type if content has zero length. 2011-10-20 11:22:33 -07:00
Mattt Thompson
c6735ffb76 Pedantically reordering conditions for acceptable content type 2011-10-20 13:03:32 -05:00
Dustin Barker
c9546830e0 Ignore Content-Type for 204 No Content response. 2011-10-20 00:24:27 -07:00
Dustin Barker
b906b62c59 Return JSON error or HTTP error. 2011-10-19 22:33:09 -07:00
Mattt Thompson
810096b37d Merge pull request #76 from evanlong/master
Fixing a couple of issues in the JSON and XML operation classes
2011-10-18 08:58:39 -07:00
Mattt Thompson
1de3d17548 [Issue #77] Returning correct error ivar in AFHTTPRequestOperation -error 2011-10-18 10:56:35 -05:00
Evan Long
436fbe82d1 AFJSONRequestOperation.m:
-Fixing an issue where all JSON parse errors are ignored. The operation.error
  was always being set to nil no what responseJSON set the error property to.

AFXMLRequestOperation.m:
  -Making sure the success callback for the iOS case is run on the main thread
2011-10-17 14:20:31 -07:00
Mattt Thompson
3040aafee9 [Issue #72] More fixes to construction of URL from relative path, preventing scheme from incorrectly changing :// to :/ 2011-10-17 14:35:56 -05:00
Mattt Thompson
68ef25cb7c [Issue #72] Fixing construction of URL from path relative to base URL, where trailing slash is removed 2011-10-13 14:32:17 -05:00
Mattt Thompson
73e1137649 Fixing file upload to match 0.7 API (Thanks, @Hunter) 2011-10-13 13:29:14 -05:00
Mattt Thompson
b811dc1e94 Merge branch 'master' of github.com:gowalla/AFNetworking 2011-10-13 12:57:46 -05:00
Mattt Thompson
4a93904566 Set text encoding for -responseString to UTF-8 by default, in case an encoding is not set in the response 2011-10-13 12:57:39 -05:00
Mattt Thompson
6cfa6c8140 Merge pull request #73 from dikbrouwer/master
Fixing zero-length JSON response parsing
2011-10-13 07:45:11 -07:00
Dick Brouwer
78242fd6a3 Fixed no content response bug 2011-10-12 16:42:31 -07:00
Mattt Thompson
8da80668f4 Fixing formatting of AFHTTPClient documentation 2011-10-12 11:46:56 -05:00
Mattt Thompson
ed60b11987 Merge branch 'experimental-0.7'
Conflicts:
	AFNetworking/AFHTTPClient.h
2011-10-12 11:41:02 -05:00
Mattt Thompson
a5387b8963 Updating PodSpec to 0.7 2011-10-12 11:39:57 -05:00
Mattt Thompson
5d2a0b1c91 Updating and revising README to match 0.7 API changes 2011-10-12 11:39:40 -05:00
Mattt Thompson
70be906529 Adding AFNetworkActivityIndicatorManager to AFNetworking.h 2011-10-12 11:11:38 -05:00
Mattt Thompson
15be99000a Adding AFNetworking.h to iOS example
Rearranging iOS example project file list
2011-10-12 11:11:18 -05:00
Mattt Thompson
207b914545 Improving documentation of AFHTTPClient, especially concerning its automatic content parsing behavior 2011-10-12 11:07:01 -05:00
Mattt Thompson
ea05359343 Adding self-deprecating apology for utter lack of command of AppKit 2011-10-12 10:54:30 -05:00
Mattt Thompson
c7af6d7397 Minor tweaks to Mac example application 2011-10-12 10:52:22 -05:00
Mattt Thompson
c492d488d8 Further documentation revisions 2011-10-12 10:42:53 -05:00
Mattt Thompson
b8ca3496f8 Adding -unregisterHTTPOperationClass to AFHTTPClient
Removing 'Accept: applciation/json' default header from AFHTTPClient

Revising documentation for AFHTTPClient
2011-10-12 10:41:59 -05:00
Mattt Thompson
e9855af89d Fixing race condition in UIImageView category with cached images. Thanks @iwat (Chaiwat S.) 2011-10-11 17:07:27 -05:00
Mattt Thompson
e7f799484a Adding Mac user agent to AFHTTPClient. Thanks to @Sutto (Darcy Laycock) 2011-10-11 16:55:14 -05:00
Mattt Thompson
a84be8b922 Mass edits and fixes to documentation 2011-10-11 16:48:10 -05:00
Mattt Thompson
49d5c65687 Documentation for AFHTTPClient and AFHTTPClientOperation protocol 2011-10-11 16:47:59 -05:00
Mattt Thompson
340fbf19eb Documentation for AFHTTPRequestOperation and subclasses
Removing public accessor for property list format property
2011-10-11 16:08:46 -05:00
Mattt Thompson
f04c832f4f Documentation for AFHTTPRequestOperation 2011-10-11 15:46:01 -05:00
Mattt Thompson
e3205b5c6d Updating iOS example project file 2011-10-11 15:28:07 -05:00
Mattt Thompson
840eca217c Documentation for AFURLConnectionOperation 2011-10-11 15:27:36 -05:00
Mattt Thompson
5f56aebd29 Rearranging schemes, like a pedant 2011-10-11 13:26:41 -05:00
Mattt Thompson
23ae78bdd5 Renaming iOS Example target 2011-10-11 13:25:41 -05:00
Mattt Thompson
f882beef46 Updating file headers and credits for Mac example project 2011-10-11 13:21:24 -05:00
Mattt Thompson
996cc4c8ac Minor refactoring and tweaking of Mac example project 2011-10-11 13:13:16 -05:00
Mattt Thompson
4f09d2c1bf Rearranging imports, like a pedant 2011-10-11 12:26:49 -05:00
Mattt Thompson
e46b9e620b Conditionally adding default user agent header 2011-10-11 12:26:34 -05:00
Mattt Thompson
b626edf490 Removing dispatch to main queue to set completion block, since that causes deadlock in (at least) iOS 5 and Mac OS 10.7 2011-10-11 12:26:21 -05:00
Mattt Thompson
f3029262df Initial implementation of Mac example application 2011-10-11 12:25:37 -05:00
Mattt Thompson
4d4847d5d8 Removing user-specific Xcode settings 2011-10-11 10:59:28 -05:00
Mattt Thompson
d263d0d73d Adding AFURLConnectionOperation to main header 2011-10-11 10:59:00 -05:00
Mattt Thompson
d2be778f9c Adding missing early return in setCompletionBlock: 2011-10-11 10:52:16 -05:00
Mattt Thompson
f4e24f223f Adding Xcode Workspace 2011-10-11 10:51:23 -05:00
Mattt Thompson
440b403f39 Adding additional pre-processor directives for network activity indicator manager 2011-10-11 10:44:39 -05:00
Mattt Thompson
60ccf59d10 Removing Info.plist from 'Copy Bundle Resources' Build Phase 2011-10-11 10:42:22 -05:00
Mattt Thompson
13bc4cfc41 Fixing pre-processor directives for XML request operation 2011-10-11 10:41:53 -05:00