Commit graph

141 commits

Author SHA1 Message Date
Mattt Thompson
dbd5fc3220 Adding missing #pragma clang diagnostic pop (/thanks @tewha) 2013-02-27 09:24:18 -08:00
Mattt Thompson
9b16005f4e Adding lock around AFHTTPRequestOperation -responseString 2013-02-04 00:00:25 +01:00
Mattt Thompson
83da1edd13 Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
Daniel Tull
7134e9612f Cause a failure when an operation is cancelled, fixes #657 2012-12-19 14:47:49 +00:00
Mattt Thompson
0f35164082 Merge branch 'fixes-for-strict-warnings' of https://github.com/ittybittyapps/AFNetworking into ittybittyapps-fixes-for-strict-warnings
Conflicts:
	AFNetworking/AFHTTPClient.m
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFImageRequestOperation.h
	AFNetworking/AFNetworking.h
	AFNetworking/AFURLConnectionOperation.m
2012-11-30 15:09:11 -08:00
Oliver Jones
692f7126ca Fixes warning: 'response' was marked unused but was used [-Werror,-Wused-but-marked-unused] 2012-11-30 18:04:44 +11:00
Oliver Jones
3997dbb7e9 Fixes warning: multiple methods named 'selector' found [-Werror,-Wstrict-selector-match] 2012-11-29 18:46:04 +11:00
Oliver Jones
f9449753ff Fixes warning: property is assumed atomic by default [-Werror,-Wimplicit-atomic-properties] 2012-11-29 18:06:05 +11:00
Oliver Jones
debd442903 Fixes warning: unused parameter 'x' [-Werror,-Wunused-parameter] 2012-11-29 18:03:34 +11:00
Mattt Thompson
402e460023 Changing order of conditional check to match responseString 2012-11-15 10:20:21 -08:00
Mattt Thompson
92134e92c3 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-11-15 10:10:48 -08:00
Mattt Thompson
000010f850 Adding missing scan of '/' separator in content type string 2012-11-15 10:05:55 -08:00
Jorge Bernal
db8941f1ba [Issue #638] Following guidelines from RFC 2616 regarding the use of string encoding when none is specified in the response
Signed-off-by: Mattt Thompson <m@mattt.me>
2012-11-15 09:53:53 -08:00
Cédric Luthi
f106d19536 Use NSLocalizedStringFromTable with AFNetworking.strings table for localized strings 2012-11-14 17:44:11 +01:00
Mattt Thompson
5ec794dc4d Indenting macro conditionals 2012-11-06 09:21:41 -08:00
Mattt Thompson
cbab8fd6b0 Using better negation for OS_OBJECT_USE_OBJC macros 2012-10-05 10:24:28 -07:00
Mattt Thompson
278aa2edfc Fixing OS_OBJECT_USE_OBJC macro check 2012-10-05 10:21:39 -07:00
Mattt Thompson
c830a82080 Minor Reformatting 2012-10-05 09:59:34 -07:00
Mattt Thompson
c091bb5ebe [Issue #557] Replacing AF_DISPATCH_RETAIN_RELEASE macro with OS_OBJECT_USE_OBJC (thanks, @nakiwo) 2012-10-05 09:27:49 -07:00
Mattt Thompson
25136ddfbe Fixing misuse of #if instead of #ifdef for AF_DISPATCH_RETAIN_RELEASE 2012-10-01 10:47:17 -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
Peyman
d59197bca0 Fix parsing of HTTP Accept headers 2012-09-19 16:48:31 -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
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
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
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
c0d7e11449 [Issue #505] Handling missing content type correctly 2012-09-07 16:45:12 -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
ed94ddf7b0 [Issue #472] Defining error keys for failing request and response to be included in NSError created in AFHTTPRequestOperation
Refactoring AFHTTPRequestOperation error handling code
2012-08-29 12:24:58 -07:00
Mattt Thompson
d863759f52 Reformatting and documenting AFHTTPRequestOperation -connection:didReceiveResponse: 2012-08-22 11:53:19 -07:00
Mattt Thompson
384df960ac Converting int to NSUInteger for instances of manually checking status code in AFHTTPRequestOperation 2012-08-22 11:46:03 -07:00
Mattt Thompson
0e460eaff5 Merge pull request #434 from gcox/issue-417
Fixed compiler error in AFHTTPRequestOperation; #417
2012-08-21 16:12:54 -07:00
Leo Lobato
7787f17469 Fix for [Issue #237].
Check if statusCode is available on response class.
2012-08-21 16:40:58 +02:00
Mattt Thompson
30e4b952b9 Merge pull request #452 from steipete/experimental-1.0RC2
don't use __weak for completionBlocks. (Issue #414)
2012-08-11 11:32:12 -07:00
Mattt Thompson
fbc4ec5dbd Adding responseString as NSLocalizedRecoverySuggestionErrorKey in errors for unacceptable content type and status code 2012-08-11 11:12:02 -04:00
Mattt Thompson
5cac0fea1b Removing leftover methods and functions from download operation patch 2012-08-06 17:22:34 -04:00
Mattt Thompson
d02d9612dd Changing string format replacement tokens to suppress compiler warnings 2012-08-04 15:29:00 -04:00
Mattt Thompson
9ad76f02fc Merge branch 'experimental-1.0RC2' of github.com:AFNetworking/AFNetworking into experimental-1.0RC2 2012-08-04 15:25:28 -04:00
George Cox
2834ecc97d Changed string format specifiers for NSUInteger values from %u to %lu
Resolves two compiler warnings in AFHTTPRequestOperation.m and one in AFHTTPClient.m
2012-07-26 08:29:40 -04:00
George Cox
109037831a Fixed compiler error in AFHTTPRequestOperation; #417
Casting (void *) block to (__bridge id).  Required as of Xcode 4.4
2012-07-26 08:05:20 -04:00
Steven Fisher
1037a807f5 Fixed warning.
containsIndex takes a NSUInteger, not a NSInteger. When CLANG_WARN_IMPLICIT_SIGN_CONVERSION is set, this generates a warning.
2012-07-23 17:11:54 -07:00
Steven Fisher
69da97c5a8 Cast NSInteger to long.
Per Apple's Platform Dependencies in String Programming Guide, casting NSInteger to long before using %lu.

https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265-SW5
2012-07-23 11:05:58 -07:00
David Keegan
b46284860d String formatting changes wanted by Xcode4.5 on Mountain Lion 2012-07-21 23:00:53 -07:00