forked from AFNetworking/AFNetworking
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CHANGES
866 lines (563 loc) · 31 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
= 1.3.3 (2013-09-25)
* Add stream error handling to `AFMultipartBodyStream` (Nicolas Bachschmidt,
Mattt Thompson)
* Add stream error handling to `AFURLConnectionOperation
-connection:didReceiveData:` (Ian Duggan, Mattt Thompson)
* Fix parameter query string encoding of square brackets according to RFC
3986 (Kra Larivain)
* Fix AFHTTPBodyPart determination of end of input stream data (Brian Croom)
* Fix unit test timeouts (Carson McDonald)
* Fix truncated `User-Agent` header field when app contained non-ASCII
characters (Diego Torres)
* Fix outdated link in documentation (Jonas Schmid)
* Fix `AFHTTPRequestOperation` `HTTPError` property to be thread-safe
(Oliver Letterer, Mattt Thompson)
* Fix API compatibility with iOS 5 (Blake Watters, Mattt Thompson)
* Fix potential race condition in `AFURLConnectionOperation
-cancelConnection` (@mm-jkolb, Mattt Thompson)
* Remove implementation of `connection:needNewBodyStream:` delegate method
in `AFURLConnectionOperation`, which fixes stream errors on authentication
challenges (Mattt Thompson)
* Fix calculation of network reachability from flags (Tracy Pesin, Mattt
Thompson)
* Update AFHTTPClient documentation to clarify scope of `parameterEncoding`
property (Thomas Catterall)
* Update `UIImageView` category to allow for nested calls to
`setImageWithURLRequest:` (Philippe Converset)
* Change `UIImageView` category to accept invalid SSL certificates when
`_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_` is defined (Flávio Caetano)
* Change to replace #pragma clang with cast (Cédric Luthi)
= 1.3.2 (2013-08-08)
* Add return status checks when building list of pinned public keys (Sylvain
Guillope)
* Add return status checks when handling connection authentication challenges
(Sylvain Guillope)
* Add tests around `AFHTTPClient initWithBaseURL:` (Kyle Fuller)
* Change to remove all `_AFNETWORKING_PIN_SSL_CERTIFICATES_` conditional
compilation (Dustin Barker)
* Change to allow fallback to generic image loading when PNG/JPEG data
provider methods fail (Darryl H. Thomas)
* Change to only set placeholder image if not `nil` (Mattt Thompson)
* Change to use `response.MIMEType` rather than (potentially nonexistent)
Content-Type headers to determine image data provider (Mattt Thompson)
* Fix image request test endpoint (Carson McDonald)
* Fix compiler warning caused by `size_t` value defaulted to `NULL` (Darryl H.
Thomas)
* Fix mutable headers property in `AFHTTPClient -copyWithZone:` (Oliver
Letterer)
* Fix documentation and asset references in README (Romain Pouclet, Peter
Goldsmith)
* Fix bug in examples always using `AFSSLPinningModeNone` (Dustin Barker)
* Fix execution of tests under Travis (Blake Watters)
* Fix static analyzer warnings about CFRelease calls to NULL pointer (Mattt
Thompson)
* Change to return early in `AFGetMediaTypeAndSubtypeWithString` if string is
`nil` (Mattt Thompson)
* Change to opimize network thread creation (Mattt Thompson)
= 1.3.1 (2013-06-18)
* Add `automaticallyInflatesResponseImage` property to
`AFImageRequestOperation`, which when enabled, offers significant performance
improvements for drawing images loaded through `UIImageView+AFNetworking` by
inflating compressed image data in the background (Mattt Thompson, Peter
Steinberger)
* Add `NSParameterAssert` check for `nil` `urlRequest` parameter in
`AFURLConnectionOperation` initializer (Kyle Fuller)
* Fix reachability to detect the case where a connection is required but can
be automatically established (Joshua Vickery)
* Fix to Test target Podfile (Kyle Fuller)
= 1.3.0 (2013-06-01)
* Change in `AFURLConnectionOperation` `NSURLConnection` authentication
delegate methods and associated block setters. If
`_AFNETWORKING_PIN_SSL_CERTIFICATES_` is defined,
`-setWillSendRequestForAuthenticationChallengeBlock:` will be available, and
`-connection:willSendRequestForAuthenticationChallenge:` will be implemented.
Otherwise, `-setAuthenticationAgainstProtectionSpaceBlock:` &
`-setAuthenticationChallengeBlock:` will be available, and
`-connection:canAuthenticateAgainstProtectionSpace:` &
`-connection:didReceiveAuthenticationChallenge:` will be implemented instead
(Oliver Letterer)
* Change in AFNetworking podspec to include Security framework (Kevin Harwood,
Oliver Letterer, Sam Soffes)
* Change in AFHTTPClient to @throw exception when non-designated intializer is
used (Kyle Fuller)
* Change in behavior of connection:didReceiveAuthenticationChallenge: to not
use URL-encoded credentials, which should already have been applied (@xjdrew)
* Change to set AFJSONRequestOperation error when unable to decode response
string (Chris Pickslay, Geoff Nix)
* Change AFURLConnectionOperation to lazily initialize outputStream property
(@fumoboy007)
* Change instances of (CFStringRef)NSRunLoopCommonModes to
kCFRunLoopCommonModes
* Change #warning to #pragma message for dynamic framework linking warnings
(@michael_r_may)
* Add unit testing and continuous integration system (Blake Watters, Oliver
Letterer, Kevin Harwood, Cédric Luthi, Adam Fraser, Carson McDonald, Mattt
Thompson)
* Fix multipart input stream implementation (Blake Watters, OliverLetterer,
Aleksey Kononov, @mattyohe, @mythodeia, @JD-)
* Fix implementation of authentication delegate methods (Oliver Letterer,
Kevin Harwood)
* Fix implementation of AFSSLPinningModePublicKey on Mac OS X (Oliver Letterer)
* Fix error caused by loading file:// requests with AFHTTPRequestOperation
subclasses (Dave Anderson, Oliver Letterer)
* Fix threading-related crash in AFNetworkActivityIndicatorManager (Dave Keck)
* Fix to suppress GNU expression and enum assignment warnings from Clang
(Henrik Hartz)
* Fix leak caused by CFStringConvertEncodingToIANACharSetName in AFHTTPClient
-requestWithMethod:path:parameters: (Daniel Demiss)
* Fix missing __bridge casts in AFHTTPClient (@apouche, Mattt Thompson)
* Fix Objective-C++ compatibility (Audun Holm Ellertsen)
* Fix to not escape tildes (@joein3d)
* Fix warnings caused by unsynthesized properties (Jeff Hunter)
* Fix to network reachability calls to provide correct status on
initialization (@djmadcat, Mattt Thompson)
* Fix to suppress warnings about implicit signedness conversion (Matt Rubin)
* Fix AFJSONRequestOperation -responseJSON failing cases (Andrew Vyazovoy,
Mattt Thompson)
* Fix use of object subscripting to avoid incompatibility with iOS < 6 and OS
X < 10.8 (Paul Melnikow)
* Various fixes to reverted multipart stream provider implementation (Yaron
Inger, Alex Burgel)
= 1.2.1 (2013-04-18)
* Add `allowsInvalidSSLCertificate` property to `AFURLConnectionOperation` and
`AFHTTPClient`, replacing `_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_` macro
(Kevin Harwood)
* Add SSL pinning mode to example project (Kevin Harwood)
* Add name to AFNetworking network thread (Peter Steinberger)
* Change pinned certificates to trust all derived certificates (Oliver
Letterer)
* Fix documentation about SSL pinning (Kevin Harwood, Mattt Thompson)
* Fix certain enumerated loops to use fast enumeration, resulting in better
performance (Oliver Letterer)
* Fix macro to work correctly under Mac OS X 10.7 and iOS 4 SDK (Paul Melnikow)
* Fix documentation, removing unsupported `@discussion` tags (Michele Titolo)
* Fix `SecTrustCreateWithCertificates` expecting an array as first argument
(Oliver Letterer)
* Fix to use `errSecSuccess` instead of `noErr` for Security frameworks
OSStatus (Oliver Letterer)
* Fix `AFImageRequestOperation` to use `[self alloc]` instead of explicit
class, which allows for subclassing (James Clarke)
* Fix for `numberOfFinishedOperations` calculations (Rune Madsen)
* Fix calculation of data length in `-connection:didReceiveData:`
(Jean-Francois Morin)
* Fix to encode JSON only with UTF-8, following recommendation of
`NSJSONSerialiation` (Sebastian Utz)
= 1.2.0 (2013-03-24)
* Add `SSLPinningMode` property to `AFHTTPClient` (Oliver Letterer, Kevin
Harwood, Adam Becevello, Dustin Barker, Mattt Thompson)
* Add single quote ("'"), comma (","), and asterix ("*") to escaped URL
encoding characters (Eric Florenzano, Marc Nijdam, Garrett Murray)
* Add `credential` property to `AFURLConnectionOperation` (Mattt Thompson)
* Add `-setDefaultCredential:` to `AFHTTPClient`
* Add `shouldUseCredentialStorage` property to `AFURLConnectionOperation`
(Mattt Thompson)
* Add support for repeated key value pairs in `AFHTTPClient` URL query string
(Nick Dawson)
* Add `AFMultipartFormData -
appendPartWithFileURL:name:fileName:mimeType:error` (Daniel Rodríguez Troitiño)
* Add `AFMultipartFormData -
appendPartWithInputStream:name:fileName:mimeType:` (@joein3d)
* Change SSL pinning to be runtime property on `AFURLConnectionOperation`
rather than defined by macro (Oliver Letterer)
* Change `AFMultipartBodyStream` to `AFMultipartBodyStreamProvider`, vending
one side of a bound CFStream pair rather than subclassing `NSInputStream` (Mike
Ash)
* Change default `Accept-Language` header in `AFHTTPClient` (@therigu, Mattt
Thompson)
* Change `AFHTTPClient` operation cancellation to be based on request URL path
rather than absolute URL string (Mattt Thompson)
* Change request operation subclass processing queues to use
`DISPATCH_QUEUE_CONCURRENT` (Mattt Thompson)
* Change `UIImageView+AFNetworking` to resolve asymmetry in cached image case
between success block provided and not provided (@Eveets, Mattt Thompson)
* Change `UIImageView+AFNetworking` to compare `NSURLRequest` instead of
`NSURL` to determine if previous request was equivalent (Cédric Luthi)
* Change `UIImageView+AFNetworking` to only set image if non-`nil` (Sean
Kovacs)
* Change indentation settings to four spaces at the project level (Cédric
Luthi)
* Change `AFNetworkActivityIndicatorManager` to only update if requests have a
non-`nil` URL (Cédric Luthi)
* Change `UIImageView+AFNetworking` to not do `setHTTPShouldHandleCookies`
(Konstantinos Vaggelakos)
* Fix request stream exhaustion error on authentication challenges (Alex
Burgel)
* Fix implementation to use `NSURL` methods instead of `CFURL` functions where
applicable (Cédric Luthi)
* Fix race condition in `UIImageView+AFNetworking` (Peyman)
* Fix `responseJSON`, `responseString`, and `responseStringEncoding` to be
threadsafe (Jon Parise, Mattt Thompson)
* Fix `AFContentTypeForPathExtension` to ensure non-`NULL` content return
value (Zach Waugh)
* Fix documentation for `appendPartWithFileURL:name:error:`
(Daniel Rodríguez Troitiño)
* Fix request operation subclass processing queues to initialize with
`dispatch_once` (Sasmito Adibowo)
* Fix posting of `AFNetworkingOperationDidStartNotification` and
`AFNetworkingOperationDidFinishNotification` to avoid crashes when logging in
response to notifications (Blake Watters)
* Fix ordering of registered operation consultation in `AFHTTPClient` (Joel
Parsons)
* Fix warning: multiple methods named 'postNotificationName:object:' found
[-Wstrict-selector-match] (Oliver Jones)
* Fix warning: multiple methods named 'objectForKey:' found
[-Wstrict-selector-match] (Oliver Jones)
* Fix warning: weak receiver may be unpredictably set to nil
[-Wreceiver-is-weak] (Oliver Jones)
* Fix missing #pragma clang diagnostic pop (Steven Fisher)
= 1.1.0 (2012-12-27)
* Add optional SSL certificate pinning with `#define
_AFNETWORKING_PIN_SSL_CERTIFICATES_` (Dustin Barker)
* Add `responseStringEncoding` property to `AFURLConnectionOperation` (Mattt
Thompson)
* Add `userInfo` property to `AFURLConnectionOperation` (Mattt Thompson,
Steven Fisher)
* Change behavior to cause a failure when an operation is cancelled (Daniel
Tull)
* Change return type of class constructors to `instancetype` (@guykogus)
* Change notifications to always being posted on an asynchronously-dispatched
block run on the main queue (Evadne Wu, Mattt Thompson)
* Change from NSLocalizedString to NSLocalizedStringFromTable with
AFNetworking.strings table for localized strings (Cédric Luthi)
* Change `-appendPartWithHeaders:body:` to add assertion handler for existence
of body data parameter (Jonathan Beilin)
* Change `AFHTTPRequestOperation -responseString` to follow guidelines from
RFC 2616 regarding the use of string encoding when none is specified in the
response (Jorge Bernal)
* Change AFHTTPClient parameter serialization dictionary keys with
`caseInsensitiveCompare:` to ensure
deterministic ordering of query string parameters, which may otherwise
cause ambiguous representations of nested parameters (James Coleman,
Mattt Thompson)
* Fix -Wstrict-selector-match warnings raised by Xcode 4.6DP3 (Jesse Collis,
Cédric Luthi)
* Fix NSJSONSerialization crash with Unicode character escapes in JSON
response (Mathijs Kadijk)
* Fix issue with early return in -startMonitoringNetworkReachability if
network reachability object could not be created (i.e. invalid hostnames)
(Basil Shkara)
* Fix retain cycles in AFImageRequestOperation.m and AFHTTPClient.m caused by
strong references within blocks (Nick Forge)
* Fix issue caused by Rails behavior of returning a single space in head :ok
responses, which is interpreted as invalid (Sebastian Ludwig)
* Fix issue in streaming multipart upload, where final encapsulation boundary
would not be appended if it was larger than the available buffer, causing a
potential timeout (Tomohisa Takaoka, David Kasper)
* Fix memory leak of network reachability callback block (Mattt Thompson)
* Fix `-initWithCoder:` for `AFURLConnectionOperation` and `AFHTTPClient` to
cast scalar types (Mattt Thompson)
* Fix bug in `-enqueueBatchOfHTTPRequestOperations:...` to by using
`addOperations:waitUntilFinished:` instead of adding each operation
individually. (Mattt Thompson)
* Change `#warning` messages of checks for `CoreServices` and
`MobileCoreServices` to message according to the build target platform (Mattt
Thompson)
* Change `AFQueryStringFromParametersWithEncoding` to create keys string
representations using the description method as specified in documentation
(Cédric Luthi)
* Fix __unused keywords for better Xcode indexing (Christian Rasmussen)
* Fix warning: unused parameter 'x' [-Werror,-Wunused-parameter] (Oliver Jones)
* Fix warning: property is assumed atomic by default
[-Werror,-Wimplicit-atomic-properties] (Oliver Jones)
* Fix warning: weak receiver may be unpredictably null in ARC mode
[-Werror,-Wreceiver-is-weak] (Oliver Jones)
* Fix warning: multiple methods named 'selector' found
[-Werror,-Wstrict-selector-match] (Oliver Jones)
* Fix warning: 'macro' is not defined, evaluates to 0 (Oliver Jones)
* Fix warning: atomic by default property 'X' has a user (Oliver Jones)defined
getter (property should be marked 'atomic' if this is intended) [-Werror,
-Wcustom-atomic-properties] (Oliver Jones)
* Fix warning: 'response' was marked unused but was used
[-Werror,-Wused-but-marked-unused] (Oliver Jones)
* Fix warning: enumeration value 'AFFinalBoundaryPhase' not explicitly handled
in switch [-Werror,-Wswitch-enum] (Oliver Jones)
= 1.0.1 / 2012-11-01
* Fix error in multipart upload streaming, where byte range at boundaries
was not correctly calculated (Stan Chang Khin Boon)
* If a success block is specified to `UIImageView -setImageWithURLRequest:
placeholderImage:success:failure`:, it is now the responsibility of the
block to set the image of the image view (Mattt Thompson)
* Add `JSONReadingOptions` property to `AFJSONRequestOperation` (Jeremy
Foo, Mattt Thompson)
* Using __weak self / __strong self pattern to break retain cycles in
background task and network reachability blocks (Jerry Beers, Dan Weeks)
* Fix parameter encoding to leave period (`.`) unescaped (Diego Torres)
* Fixing last file component in multipart form part creation (Sylver
Bruneau)
* Remove executable permission on AFHTTPClient source files (Andrew
Sardone)
* Fix warning (error with -Werror) on implicit 64 to 32 conversion (Dan
Weeks)
* Add GitHub's .gitignore file (Nate Stedman)
* Updates to README (@ckmcc)
= 1.0 / 2012-10-15
* AFNetworking now requires iOS 5 / Mac OSX 10.7 or higher (Mattt Thompson)
* AFNetworking now uses Automatic Reference Counting (ARC) (Mattt Thompson)
* AFNetworking raises compiler warnings for missing features when
SystemConfiguration or CoreServices / MobileCoreServices frameworks are not
included in the project and imported in the precompiled headers (Mattt
Thompson)
* AFNetworking now raises compiler error when not compiled with ARC (Steven
Fisher)
* Add `NSCoding` and `NSCopying` protocol conformance to
`AFURLConnectionOperation` and `AFHTTPClient` (Mattt Thompson)
* Add substantial improvements HTTP multipart streaming support, having
files streamed directly from disk and read sequentially from a custom input
stream (Max Lansing, Stan Chang Khin Boon, Mattt Thompson)
* Add `AFMultipartFormData -throttleBandwidthWithPacketSize:delay:` as
workaround to issues when uploading over 3G (Mattt Thompson)
* Add request and response to `userInfo` of errors returned from failing
`AFHTTPRequestOperation` (Mattt Thompson)
* Add `userInfo` dictionary with current status in reachability changes
(Mattt Thompson)
* Add `Accept` header for image requests in `UIImageView` category (Bratley
Lower)
* Add explicit declaration of `NSURLConnection` delegate methods so that
they can be overridden in subclasses (Mattt Thompson, Evan Grim)
* Add parameter validation to match conditions specified in documentation
(Jason Brennan, Mattt Thompson)
* Add import to `UIKit` to avoid build errors from `UIDevice` references in
`User-Agent` default header (Blake Watters)
* Remove `AFJSONUtilities` in favor of `NSJSONSerialization` (Mattt Thompson)
* Remove `extern` declaration of `AFURLEncodedStringFromStringWithEncoding`
function (`CFURLCreateStringByAddingPercentEscapes` should be used instead)
(Mattt Thompson)
* Remove `setHTTPShouldHandleCookies:NO` from `AFHTTPClient` (@phamsonha,
Mattt Thompson)
* Remove `dispatch_retain` / `dispatch_release` with ARC in iOS 6 (Benoit
Bourdon)
* Fix threading issue with `AFNetworkActivityIndicatorManager` (Eric Patey)
* Fix issue where `AFNetworkActivityIndicatorManager` count could become
negative (@ap4y)
* Fix properties to explicitly set options to suppress warnings (Wen-Hao
Lue, Mattt Thompson)
* Fix compiler warning caused by mismatched types in upload / download
progress blocks (Gareth du Plooy, tomas.a)
* Fix weak / strong variable relationships in `completionBlock` (Peter
Steinberger)
* Fix string formatting syntax warnings caused by type mismatch (David
Keegan, Steven Fisher, George Cox)
* Fix minor potential security vulnerability by explicitly using string
format in NSError localizedDescription value in userInfo (Steven Fisher)
* Fix `AFURLConnectionOperation -pause` by adding state checks to prevent
likely memory issues when resuming (Mattt Thompson)
* Fix warning caused by miscast of type when
`CLANG_WARN_IMPLICIT_SIGN_CONVERSION` is set (Steven Fisher)
* Fix incomplete implementation warning in example code (Steven Fisher)
* Fix warning caused by using `==` comparator on floats (Steven Fisher)
* Fix iOS 4 bug where file URLs return `NSURLResponse` rather than
`NSHTTPURLResponse` objects (Leo Lobato)
* Fix calculation of finished operations in batch operation progress
callback (Mattt Thompson)
* Fix documentation typos (Steven Fisher, Matthias Wessendorf,
jorge@miv.uk.com)
* Fix `hasAcceptableStatusCode` to return true after a network failure (Tony
Million)
* Fix warning about missing prototype for private static method (Stephan
Diederich)
* Fix issue where `nil` content type resulted in unacceptable content type
(Mattt Thompson)
* Fix bug related to setup and scheduling of output stream (Stephen Tramer)
* Fix AFContentTypesFromHTTPHeader to correctly handle comma-delimited
content types (Peyman, Mattt Thompson, @jsm174)
* Fix crash caused by `_networkReachability` not being set to `NULL` after
releasing (Blake Watters)
* Fix Podspec to correctly import required headers and use ARC (Eloy Durán,
Blake Watters)
* Fix query string parameter escaping to leave square brackets unescaped
(Mattt Thompson)
* Fix query string parameter encoding of `NSNull` values (Daniel Rinser)
* Fix error caused by referencing `__IPHONE_OS_VERSION_MIN_REQUIRED` without
importing `Availability.h` (Blake Watters)
* Update example to use App.net API, as Twitter shut off its unauthorized
access to the public timeline (Mattt Thompson)
* Update `AFURLConnectionOperation` to replace `NSAutoReleasePool` with
`@autoreleasepool` (Mattt Thompson)
* Update `AFHTTPClient` operation queue to specify
`NSOperationQueueDefaultMaxConcurrentOperationCount` rather than
previously-defined constant (Mattt Thompson)
* Update `AFHTTPClient -initWithBaseURL` to automatically append trailing
slash, so as to fix common issue where default path is not respected without
trailing slash (Steven Fisher)
* Update default `AFHTTPClient` `User-Agent` header strings (Mattt Thompson,
Steven Fisher)
* Update icons for iOS example application (Mattt Thompson)
* Update `numberOfCompletedOperations` variable in progress block to be
renamed to `numberOfFinishedOperations` (Mattt Thompson)
= 0.10.0 / 2012-06-26
* Add Twitter Mac Example application (Mattt Thompson)
* Add note in README about how to set `-fno-objc-arc` flag for multiple files
at once (Pål Brattberg)
* Add note in README about 64-bit architecture requirement (@rmuginov, Mattt
Thompson)
* Add note in `AFNetworkActivityIndicatorManager` about not having to manually
manage animation state (Mattt Thompson)
* Add missing block parameter name for `imageProcessingBlock` (Francois
Lambert)
* Add NextiveJson to list of supported JSON libraries (Mattt Thompson)
* Restore iOS 4.0 compatibility with `addAcceptableStatusCodes:` and
`addAcceptableContentTypes:` (Zachary Waldowski)
* Update `AFHTTPClient` to use HTTP pipelining for `GET` and `HEAD` requests by
default (Mattt Thompson)
* Remove @private ivar declaration in headers (Peter Steinberger, Mattt
Thompson)
* Fix potential premature deallocation of _skippedCharacterSet (Tom Wanielista,
Mattt Thompson)
* Fix potential issue in `setOutputStream` by closing any existing
`outputStream` (Mattt Thompson)
* Fix filename in AFHTTPClient header (Steven Fisher)
* Fix documentation for UIImageView+AFNetworking (Mattt Thompson)
* Fix HTTP multipart form format, which caused issues with Tornado web server
(Matt Chen)
* Fix `AFHTTPClient` to not append empty data into multipart form data (Jon
Parise)
* Fix URL encoding normalization to not conditionally escape percent-encoded
strings (João Prado Maia, Kendall Helmstetter Gelner, @cysp, Mattt Thompson)
* Fix `AFHTTPClient` documentation reference of
`HTTPRequestOperationWithRequest:success:failure` (Shane Vitarana)
* Add `AFURLRequestOperation -setRedirectResponseBlock:` (Kevin Harwood)
* Fix `AFURLConnectionOperation` compilation error by conditionally importing
UIKit framework (Steven Fisher)
* Fix issue where image processing block is not called correctly with success
block in `AFImageRequestOperation` (Sergey Gavrilyuk)
* Fix leaked dispatch group in batch operations (@andyegorov, Mattt Thompson)
* Fix support for non-LLVM compilers in `AFNetworkActivityIndicatorManager`
(Abraham Vegh, Bill Williams, Mattt Thompson)
* Fix AFHTTPClient to not add unnecessary data when constructing multipart form
request with nil parameters (Taeho Kim)
= 1.0RC1 / 2012-04-25
* Add `AFHTTPRequestOperation +addAcceptableStatusCodes /
+addAcceptableContentTypes` to dynamically add acceptable status codes and
content types on the class level (Mattt Thompson)
* Add support for compound and complex `Accept` headers that include multiple
content types and / or specify a particular character encoding (Mattt Thompson)
* Add `AFURLConnectionOperation
-setShouldExecuteAsBackgroundTaskWithExpirationHandler:` to have operations
finish once an app becomes inactive (Mattt Thompson)
* Add support for pausing / resuming request operations (Peter Steinberger,
Mattt Thompson)
* Improve network reachability functionality in `AFHTTPClient`, including a
distinction between WWan and WiFi reachability (Kevin Harwood, Mattt Thompson)
= 0.9.2 / 2012-04-25
* Add thread safety to `AFNetworkActivityIndicator` (Peter Steinberger, Mattt
Thompson)
* Document requirement of available JSON libraries for decoding responses in
`AFJSONRequestOperation` and parameter encoding in `AFHTTPClient` (Mattt
Thompson)
* Fix `AFHTTPClient` parameter encoding (Mattt Thompson)
* Fix `AFJSONEncode` and `AFJSONDecode` to use `SBJsonWriter` and
`SBJsonParser` instead of `NSObject+SBJson` (Oliver Eikemeier)
* Fix bug where `AFJSONDecode` does not return errors (Alex Michaud)
* Fix compiler warning for undeclared
`AFQueryStringComponentFromKeyAndValueWithEncoding` function (Mattt Thompson)
* Fix cache policy for URL requests (Peter Steinberger)
* Fix race condition bug in `UIImageView+AFNetworking` caused by incorrectly
nil-ing request operations (John Wu)
* Fix reload button in Twitter example (Peter Steinberger)
* Improve batched operation by deferring execution of batch completion block
until all component request completion blocks have finished (Patrick Hernandez,
Kevin Harwood, Mattt Thompson)
* Improve performance of image request decoding by dispatching to background
queue (Mattt Thompson)
* Revert `AFImageCache` to cache image objects rather than `NSPurgeableData`
(Tony Million, Peter Steinberger, Mattt Thompson)
* Remove unnecessary KVO `willChangeValueForKey:` / `didChangeValueForKey:`
calls (Peter Steinberger)
* Remove unnecessary @private ivar declarations in headers (Peter Steinberger,
Mattt Thompson)
* Remove @try-@catch block wrapping network thread entry point (Charles T. Ahn)
= 0.9.1 / 2012-03-19
* Create Twitter example application (Mattt Thompson)
* Add support for nested array and dictionary parameters for query string and
form-encoded requests (Mathieu Hausherr, Josh Chung, Mattt Thompson)
* Add `AFURLConnectionOperation -setCacheResponseBlock:`, which allows the
behavior of the `NSURLConnectionDelegate` method
`-connection:willCacheResponse:` to be overridden without subclassing (Mattt
Thompson)
* Add `_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_` macros for
NSURLConnection authentication delegate methods (Mattt Thompson)
* Add properties for custom success / failure callback queues (Peter
Steinberger)
* Add notifications for network reachability changes to `AFHTTPClient` (Mattt
Thompson)
* Add `AFHTTPClient -patchPath:` convenience method (Mattt Thompson)
* Add support for NextiveJson (Adrian Kosmaczewski)
* Improve network reachability checks (C. Bess)
* Improve NSIndexSet formatting in error strings (Jon Parise)
* Document crashing behavior in iOS 4 loading a file:// URL (Mattt Thompson)
* Fix crash caused by `AFHTTPClient -cancelAllHTTPOperationsWithMethod:` not
checking operation to be instance of `AFHTTPRequestOperation` (Mattt Thompson)
* Fix crash caused by passing `nil` URL in requests (Sam Soffes)
* Fix errors caused by connection property not being nil'd out after an
operation finishes (Kevin Harwood, @zdzisiekpu)
* Fix crash caused by passing `NULL` error pointer when setting `NSInvocation`
in `AFJSONEncode` and `AFJSONDecode` (Tyler Stromberg)
* Fix batch operation completion block returning on background thread (Patrick
Hernandez)
* Fix documentation for UIImageView+AFNetworking (Dominic Dagradi)
* Fix race condition caused by `AFURLConnectionOperation` being cancelled on
main thread, rather than network thread (Erik Olsson)
* Fix `AFURLEncodedStringFromStringWithEncoding` to correctly handle cases
where % is used as a literal rather than as part of a percent escape code
(Mattt Thompson)
* Fix missing comma in `+defaultAcceptableContentTypes` for
`AFImageRequestOperation` (Michael Schneider)
= 0.9.0 / 2012-01-23
* Add thread-safe behavior to `AFURLConnectionOperation` (Mattt Thompson)
* Add batching of operations for `AFHTTPClient` (Mattt Thompson)
* Add authentication challenge callback block to override default
implementation of `connection:didReceiveAuthenticationChallenge:` in
`AFURLConnectionOperation` (Mattt Thompson)
* Add `_AFNETWORKING_PREFER_NSJSONSERIALIZATION_`, which, when defined,
short-circuits the standard preference ordering used in `AFJSONEncode` and
`AFJSONDecode` to use `NSJSONSerialization` when available, falling back on
third-party-libraries. (Mattt Thompson, Shane Vitarana)
* Add custom `description` for `AFURLConnectionOperation` and `AFHTTPClient`
(Mattt Thompson)
* Add `text/javascript` to default acceptable content types for
`AFJSONRequestOperation` (Jake Boxer)
* Add `imageScale` property to change resolution of images constructed from
cached data (Štěpán Petrů)
* Add note about third party JSON libraries in README (David Keegan)
* `AFQueryStringFromParametersWithEncoding` formats `NSArray` values in the
form `key[]=value1&key[]=value2` instead of `key=(value1,value2)` (Dan Thorpe)
* `AFImageRequestOperation -responseImage` on OS X uses `NSBitmapImageRep` to
determine the correct pixel dimensions of the image (David Keegan)
* `AFURLConnectionOperation` `connection` has memory management policy `assign`
to avoid retain cycles caused by `NSURLConnection` retaining its delegate
(Mattt Thompson)
* `AFURLConnectionOperation` calls super implementation for `-isReady`,
following the guidelines for `NSOperation` subclasses (Mattt Thompson)
* `UIImageView -setImageWithURL:` and related methods call success callback
after setting image (Cameron Boehmer)
* Cancel request if an authentication challenge has no suitable credentials in
`AFURLConnectionOperation -connection:didReceiveAuthenticationChallenge:`
(Jorge Bernal)
* Remove exception from
`multipartFormRequestWithMethod:path:parameters:constructing BodyWithBlock:`
raised when certain HTTP methods are used. (Mattt Thompson)
* Remove `AFImageCache` from public API, moving it into private implementation
of `UIImageView+AFNetworking` (Mattt Thompson)
* Mac example application makes better use of AppKit technologies and
conventions (Mattt Thompson)
* Fix issue with multipart form boundaries in `AFHTTPClient
-multipartFormRequestWithMethod:path:parameters:constructing BodyWithBlock:`
(Ray Morgan, Mattt Thompson, Sam Soffes)
* Fix "File Upload with Progress Callback" code snippet in README (Larry
Legend)
* Fix to SBJSON invocations in `AFJSONEncode` and `AFJSONDecode` (Matthias
Tretter, James Frye)
* Fix documentation for `AFHTTPClient requestWithMethod:path:parameters:`
(Michael Parker)
* Fix `Content-Disposition` headers used for multipart form construction
(Michael Parker)
* Add network reachability status change callback property to `AFHTTPClient`.
(Mattt Thompson, Kevin Harwood)
* Fix exception handling in `AFJSONEncode` and `AFJSONDecode` (David Keegan)
* Fix `NSData` initialization with string in `AFBase64EncodedStringFromString`
(Adam Ernst, Mattt Thompson)
* Fix error check in `appendPartWithFileURL:name:error:` (Warren Moore,
Baldoph, Mattt Thompson)
* Fix compiler warnings for certain configurations (Charlie Williams)
* Fix bug caused by passing zero-length `responseData` to response object
initializers (Mattt Thompson, Serge Paquet)