Граф коммитов

1392 Коммитов

Автор SHA1 Сообщение Дата
Mattt Thompson 8658013d58 Merge pull request #814 from madninja/bug/percent-escapes
Adding comma (,) as a percent escaped character
2013-02-27 10:48:07 -08:00
Mattt Thompson 7673c3e1d0 [Issue #817] Removing unused totalContentLength and offsetContentLength properties, and implementation of -connection:didReceiveResponse: 2013-02-27 09:55:07 -08:00
Mattt Thompson dbd5fc3220 Adding missing #pragma clang diagnostic pop (/thanks @tewha) 2013-02-27 09:24:18 -08:00
Mattt Thompson c3e70f9948 Merge pull request #825 from OliverLetterer/thread-issue
Fixes -[AFURLConnectionOperation totalBytesRead] threading issue.
2013-02-27 08:36:47 -08:00
Oliver Letterer 580c547616 Fixes -[AFURLConnectionOperation totalBytesRead] threading issue. 2013-02-26 08:37:18 +01:00
Mike Ash bea04f4978 Fix deadlock from trying to do a dispatch_sync on the main queue when already on the main thread 2013-02-22 17:37:48 -05:00
Mike Ash 1e0bce2ba9 Delete useless commented-out call to handleOutputStreamSpaceAvailable, and fix the stream:handleEvent: bit flag check 2013-02-21 15:01:20 -05:00
Mike Ash 01b206071b Reimplement AFMultipartBodyStream as AFMultipartBodyStreamProvider vending one side of a bound CFStream pair, to avoid subclassing NSInputStream and fix #781 2013-02-21 14:35:41 -05:00
Marc Nijdam 63e5f0b57a Adding comma (,) as a percent escaped character since it's in the reserved words per the RFC 2013-02-19 16:01:01 -08:00
Daniel Rodríguez Troitiño 53abb54291 Add method to allow custom file name and content type for multiparts.
The previous method was selecting the file name and the MIME type
automatically depending on the given file URL.

The new method allows specifying a custom file name and a custom
MIME type for the those parts.
2013-02-15 21:13:09 +01:00
Daniel Rodríguez Troitiño 574792d9cb Fix documentation for appendPartWithFileURL:name:error:.
The documentation said that the values for filename and the
Content-Type header was being obtained from a NSURLResponse,
but since this is a request, no response is available yet.

The documentation has been changed to reflect better where
those values really come from.
2013-02-15 21:09:31 +01:00
Mattt Thompson cb3744a808 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2013-02-09 20:22:06 +01:00
Mattt Thompson caa9551ae4 [Issue #791] Matching operations on request URL path rather than absolute URL string 2013-02-09 19:36:37 +01:00
Mattt Thompson 284b95006e Merge pull request #792 from zachwaugh/master
Fix content type for extension from returning null
2013-02-09 09:44:40 -08:00
Zach Waugh a563b61a34 Ensure content type for path extension doesn't return null 2013-02-09 11:49:06 -05:00
Mattt Thompson effd1136d2 Adding Security frameworks to podspec, and defining _AFNETWORKING_PIN_SSL_CERTIFICATES_ 2013-02-08 15:11:06 +01:00
Mattt Thompson 8215c43680 Minor reformatting of AFHTTPClient constants documentation 2013-02-08 15:08:41 +01:00
Mattt Thompson d609df5321 Adding documentation about SSL Pinning 2013-02-08 15:08:26 +01:00
Mattt Thompson 35c6f996c0 Adding Security framework to example projects and adding #define for _AFNETWORKING_PIN_SSL_CERTIFICATES_ 2013-02-08 14:38:49 +01:00
Mattt Thompson 8e6202b134 Fixing compiler warnings in SSL pinning initializers
Minor refactoring
2013-02-08 14:37:17 +01:00
Mattt Thompson 1053e00fff Removing #warning about Security framework 2013-02-08 14:22:27 +01:00
Mattt Thompson 0e18f85bfb Replacing #ifdef macro check for Security to _AFNETWORKING_PIN_SSL_CERTIFICATES_ 2013-02-08 14:21:52 +01:00
Mattt Thompson f0be1ed682 Merge pull request #786 from tewha/patch-9
Fixed comment typo
2013-02-08 00:41:48 -08:00
Steven Fisher b3625ebcd0 Fixed comment typo
Minor typo.
2013-02-07 14:19:54 -08:00
Mattt Thompson 8cd63afe76 Stashing merge 2013-02-06 14:03:22 +01:00
Mattt Thompson 2cd283421f Merge pull request #778 from Neonkoala/master
Support for repeated key value pairs in URL encoded forms
2013-02-06 03:42:07 -08:00
Nick Dawson 5698ab3768 Added support for repeated key value pairs through use of NSSet 2013-02-05 12:46:03 +00:00
Sasmito Adibowo ba60cab1be Use dispatch_once to initialize content-type-specific processing queues
Signed-off-by: Mattt Thompson <m@mattt.me>
2013-02-04 00:45:35 +01:00
Mattt Thompson 87c8c776d9 Using DISPATCH_QUEUE_CONCURRENT for all calls to dispatch_queue_create for media type processing queues 2013-02-04 00:41:13 +01:00
Mattt Thompson 136f5ab1b9 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2013-02-04 00:21:54 +01:00
Mattt Thompson fa3a77544f Ignoring -Wcovered-switch-default in AFHTTPBodyPart -hasBytesAvailable 2013-02-04 00:21:42 +01:00
Mattt Thompson 321a2af79d Fixing warnings caused by implicit property attributes 2013-02-04 00:20:56 +01:00
Mattt Thompson dd529c9c12 Merge pull request #772 from 0xced/fix-uiimageview-nil-url
Compare NSURLRequest rather than NSURL
2013-02-03 15:12:57 -08:00
Mattt Thompson 447fb3a913 Adding lock around AFURLConnectionOperation -responseStringEncoding
Adding check for self.response in AFURLConnectionOperation -responseStringEncoding
2013-02-04 00:01:14 +01:00
Mattt Thompson 9b16005f4e Adding lock around AFHTTPRequestOperation -responseString 2013-02-04 00:00:25 +01:00
Mattt Thompson af8ca5af92 Merge branch 'experimental-issue-737'
Conflicts:
	AFNetworking/AFHTTPClient.m
2013-02-01 22:44:16 +00:00
Mattt Thompson 9ae534b94f Limiting default Accept-Language header to 6 languages 2013-02-01 22:43:30 +00:00
Cédric Luthi 4b17ec6b51 Compare NSURLRequest rather than NSURL
If you inadvertently load a nil URL in UIImageView+AFNetworking, the failure block of the image request operation is bypassed because [nil isEqual:nil] == NO. By comparing the URL request instead of the URL, the `isEqual:` test passes and the error is properly forwarded to the failure block parameter.
2013-02-01 12:23:26 +01:00
Oliver Jones 22c7d4ec96 Fixes warning: weak receiver may be unpredictably set to nil [-Wreceiver-is-weak]
Signed-off-by: Mattt Thompson <m@mattt.me>
2013-02-01 02:45:36 +00:00
Oliver Jones 8558d4d5f0 Fixes warning: multiple methods named 'objectForKey:' found [-Wstrict-selector-match] 2013-02-01 02:43:12 +00:00
Oliver Jones 6b8cdf1581 Fixes warning: multiple methods named 'postNotificationName:object:' found [-Wstrict-selector-match] 2013-02-01 02:42:58 +00:00
Mattt Thompson 74da4493f2 Wrapping AFHTTPBodyPart switch statement with #pragma to ignore -Wcovered-switch-default 2013-02-01 02:39:02 +00:00
Mattt Thompson be72f5fe1f [Issue #767] Consolidating macros 2013-01-31 07:06:26 +00:00
Mattt Thompson 26da1ad95a Merge branch 'master' of https://github.com/Fl0p/AFNetworking into Fl0p-master 2013-01-31 07:02:51 +00:00
Mattt Thompson e969fcd904 Cleaning up formatting from pull request
Adding @dynamic for lock property
2013-01-31 07:00:03 +00:00
Mattt Thompson 3efe3742f1 Merge pull request #768 from jparise/response-json-lock
Serialize calls to responseJSON using a lock.
2013-01-30 22:56:53 -08:00
Mattt Thompson c790135fd4 Updating OS X project settings 2013-01-31 06:55:04 +00:00
Mattt Thompson 0f794ccfc9 [Issue #769] Resolving asymmetry in cached image case for UIImageView category 2013-01-31 06:54:45 +00:00
Jon Parise 0dbff8387b Serialize calls to responseJSON using a lock.
AFJSONRequestOperation's completion path calls `responseJSON` from a
processing queue.  Because `responseJSON` "lazily" deserializes the
response data into a JSON object, it needs to be protected against
concurrent access from other queues (threads).

For example, `AFNetworkingOperationDidFinishNotification` is posted
when the operation finishes but perhaps before that processing queue
has finishing executing.  Notification observers who also access
`responseJSON` end up in a race with that queue that often leads to a
crash.

We reuse the existing lock from our AFURLConnectionOperation base
class.
2013-01-30 12:25:22 -08:00
flop d998515d24 Fix [Issue #751] 2013-01-30 21:52:13 +03:00