Commit graph

991 commits

Author SHA1 Message Date
Stan Chang Khin Boon
f032261cb8 This is a working version of multipart streaming.
- Fixed missing CRLF after header string.
 - Fixed not traversing through the buffer while reading.
 - Fixed content length of body stream are incorrect when attempts to finalize the multipart form data due to boundary settings not set yet.
 - Create a method named `setInitialAndFinalBoundaries` that attempts to reset all HTTP body parts boundary settings first before setting the initial and final boundaries.

Tested successfully on my own codes that does photo uploading to Flickr using `appendPartWithFileData:name:fileName:mimeType:`. I have not tried uploading from file URL but don't foresee any issue.
2012-09-25 03:33:51 +08:00
Mattt Thompson
f523744cf0 Minor restructuring of project file and app delegate in example 2012-09-24 08:27:18 -07:00
Mattt Thompson
df140116b8 Moving AFSwizzleClassMethodWithClassAndSelectorUsingBlock function 2012-09-24 08:26:38 -07:00
Mattt Thompson
45880fd9a0 Minor refactoring and reformatting 2012-09-24 08:26:00 -07:00
Mattt Thompson
7147ef61bb Merge branch 'master' of https://github.com/peymano/AFNetworking into peymano-master 2012-09-24 07:44:34 -07:00
Mattt Thompson
ed7a4331c0 Merge pull request #533 from alloy/master
Re-add the prefix header import of SystemConfiguration to the podspec.
2012-09-21 11:24:41 -07:00
Eloy Durán
510e0be4d2 Re-add the prefix header import of SystemConfiguration to the podspec. 2012-09-21 10:33:17 +02:00
Peyman
d59197bca0 Fix parsing of HTTP Accept headers 2012-09-19 16:48:31 -07:00
Mattt Thompson
b43345b8c8 Merge pull request #530 from blakewatters/bugfix/release-reachability-reference
Fix for reachability release issue #529
2012-09-19 13:17:27 -07:00
Blake Watters
3589d25652 Set _networkReachability to NULL after releasing. fixes AFNetworking/AFNetworking#529 2012-09-19 16:00:15 -04:00
Mattt Thompson
f0e6b53fe7 Synchronoizing podspec with CocoaPods version 2012-09-17 12:10:43 -07:00
Mattt Thompson
ac19057c72 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-09-17 12:03:47 -07:00
Mattt Thompson
2b89ad4c60 Updating podspec to 1.0RC3 2012-09-17 12:03:26 -07:00
Mattt Thompson
7cd20077dc Updating 1.0RC2 podspec to add requires_arc flag 2012-09-17 12:01:24 -07:00
Mattt Thompson
1994d08c15 Merge pull request #522 from patoroco/master
Update some URLs
2012-09-17 11:55:40 -07:00
Mattt Thompson
8c536f5f8d Refactoring macros for dispatch_release/retain fixes
Fixing macro for changed method signature for imp_implementationWithBlock(), which actually depends on Xcode version (and thus a check for either __IPHONE_6_0 or __MAC_10_8 to be defined,regardless of the deployment target
2012-09-17 11:53:49 -07:00
jorge@miv.uk.com
d2077e5609 Fixed URLs to new documentation (under github domain) 2012-09-17 19:37:54 +01:00
Mattt Thompson
f12c163df9 Merge branch 'master' of https://github.com/benoitb/AFNetworking into benoitb-master 2012-09-17 11:24:07 -07:00
Mattt Thompson
94bbe4c1e8 [Issue #521] Fixing AFContentTypesFromHTTPHeader to correctly handle comma-delimited content types 2012-09-17 09:37:33 -07:00
Benoit Bourdon
925c926a64 dispatch_retain & dispatch_release no longer needed with latest ARC 2012-09-15 12:41:58 +02:00
Mattt Thompson
501c4f18d4 [Issue #516] Removing setHTTPShouldHandleCookies:NO from AFHTTPClient 2012-09-14 13:53:18 -07:00
Mattt Thompson
c8380168f8 Merge branch '1.0RC2' 2012-09-14 10:59:18 -07:00
Mattt Thompson
42fecdc138 Merge branch 'stream-rl-fix' of https://github.com/sptramer/AFNetworking into sptramer-stream-rl-fix
Conflicts:
	AFNetworking/AFURLConnectionOperation.m
2012-09-14 10:52:55 -07:00
Mattt Thompson
c1d3d84093 Updating podspec to 1.0RC2 2012-09-14 10:34:10 -07:00
Mattt Thompson
ff37bb59f8 Merge branch 'master' into 1.0RC2
Conflicts:
	AFNetworking/AFHTTPClient.m
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFJSONRequestOperation.m
	AFNetworking/AFNetworkActivityIndicatorManager.m
	AFNetworking/AFURLConnectionOperation.h
2012-09-14 10:30:25 -07:00
Mattt Thompson
b8dff45fd8 Updating podspec to 0.10.1 2012-09-14 10:17:53 -07:00
Mattt Thompson
a4508ac997 [Issue #507] Fixing potential issues with output stream runloop scheduling 2012-09-14 09:21:23 -07:00
Mattt Thompson
c8d9f79ef9 [#417] Fixing compilation error in Xcode 4.5 2012-09-14 09:02:32 -07:00
Mattt Thompson
95f2f53604 Updating project settings 2012-09-14 09:01:54 -07:00
Mattt Thompson
40c73c6588 Updating link to documentation 2012-09-13 09:43:27 -07:00
Stephen Tramer
9ffd2226b3 [BUGFIX] Avoid common output stream setup errors, including immediately scheduling the stream on a runloop. 2012-09-10 13:17:04 -07:00
Mattt Thompson
c0d7e11449 [Issue #505] Handling missing content type correctly 2012-09-07 16:45:12 -07:00
Mattt Thompson
c5ac49e5f9 Merge branch 'master' of github.com:AFNetworking/AFNetworking
Conflicts:
	AFNetworking/AFHTTPClient.m
2012-09-05 19:48:12 -07:00
Mattt Thompson
95ac3c49dc Merge pull request #500 from aitskovi/master
Fix typo in multipart dir warning message
2012-09-04 16:32:50 -07:00
Avi Itskovich
c5e450f4af Fix typo in multipart dir warning message 2012-09-04 17:32:00 -04:00
Mattt Thompson
4bdc72cee0 Merge pull request #498 from diederich/fix-warning
fix warning
2012-09-04 10:57:20 -07:00
Stephan Diederich
e1dafd15ec fix warning
Xcode warns about a missing prototype which can
be fixed by making the (private) method static
2012-09-04 19:24:03 +02:00
Mattt Thompson
858c716c16 Re-indenting AFHTTPClient.m 2012-09-03 11:11:24 -07:00
Mattt Thompson
8fc948cf21 Merge pull request #494 from mikelikespie/remove-accept-encoding-default-header
Removing setting Accept-Encoding by default.
2012-09-01 15:48:40 -07:00
Mike Lewis
b614dee5bb Removing setting Accept-Encoding by default.
NSURLConnection will set this to the supported formats which is a
superset of gzip. (at least in 5.1 it set deflate as well)
2012-08-31 23:29:11 -07:00
Mattt Thompson
70dff01807 Using dispatch_once pattern for initializing UIImageView request operation queue singleton
Initializing operation queue with NSOperationQueueDefaultMaxConcurrentOperationCount
2012-08-31 16:57:04 -07:00
Mattt Thompson
5ddd070607 Fixing appledoc compliation errors in documentation
Assorted copy edits and reformatting to documentation
2012-08-31 09:53:55 -07:00
Mattt Thompson
edb0830128 Removing references to AFHTTPClientOperation protocol in documentation 2012-08-31 09:13:18 -07:00
Mattt Thompson
26b5a3b533 Fixing name of path param in -cancelAllHTTPOperationsWithMethod:path: documentation 2012-08-31 09:09:52 -07:00
Mattt Thompson
ec0240f6e4 [Issue #489] Adding userInfo dictionary with current status in reachability changes 2012-08-31 09:04:54 -07:00
Mattt Thompson
1a23b98778 Using more idiomatic ?: for AFHTTPRequestOperation -setCompletionBlockWithSuccess:failure: 2012-08-31 08:42:53 -07:00
Mattt Thompson
e445903901 Adding early return for hasAcceptableContentType 2012-08-31 08:41:57 -07:00
Tony Million
cdbae5a9fb tests self.response before blindy returning 200 in hasAcceptableStatusCode
if self.response is nil then network failure is assumed
2012-08-31 09:27:43 +01:00
Tony Million
e330792411 hasAcceptableStatusCode will return true after a network failure 2012-08-30 21:51:39 +01:00
Mattt Thompson
5166d5af85 Specifying Mac OS X in User-Agent (/thanks @tewha) 2012-08-29 14:16:27 -07:00