forked from AFNetworking/AFNetworking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
1573 lines (1009 loc) · 54.8 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
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
= 2.4.1 (2014-09-04)
* Fix compiler warning generated on 32-bit architectures (John C. Daub)
* Fix potential crash caused by failed validation with nil responseData
(Mattt Thompson)
* Fix to suppress compiler warnings for out-of-range enumerated type
value assignment (Mattt Thompson)
= 2.4.0 (2014-09-03)
* Add CocoaDocs color scheme (Orta)
* Add image cache to `UIButton` category (Kristian Bauer, Mattt Thompson)
* Add test for success block on 204 response (Mattt Thompson)
* Add tests for encodable and re-encodable query string parameters (Mattt
Thompson)
* Add `AFHTTPRequestSerializer -valueForHTTPHeaderField:` (Kyle Fuller)
* Add `AFNetworkingOperationFailingURLResponseDataErrorKey` key to user info
of serialization error (Yannick Heinrich)
* Add `imageResponseSerializer` property to `UIButton` category (Kristian
Bauer, Mattt Thompson)
* Add `removesKeysWithNullValues` setting to serialization and copying (Jon
Shier)
* Change request and response serialization tests to be factored out into
separate files (Mattt Thompson)
* Change signature of success parameters in `UIButton` category methods to
match those in `UIImageView` (Mattt Thompson)
* Change to remove charset parameter from
`application/x-www-form-urlencoded` content type (Mattt Thompson)
* Change `AFImageCache` to conform to `NSObject` protocol ( Marcelo Fabri)
* Change `AFMaximumNumberOfToRecreateBackgroundSessionUploadTask` to
`AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask` (Mattt
Thompson)
* Fix documentation error for NSSecureCoding (Robert Ryan)
* Fix documentation for `URLSessionDidFinishEventsForBackgroundURLSession`
delegate method (Mattt Thompson)
* Fix expired ADN certificate in example project (Carson McDonald)
* Fix for interoperability within Swift project (Stephan Krusche)
* Fix for potential deadlock due to KVO subscriptions within a lock
(Alexander Skvortsov)
* Fix iOS 7 bug where session tasks can have duplicate identifiers if
created from different threads (Mattt Thompson)
* Fix iOS 8 bug by adding explicit synthesis for `delegate` of
`AFMultipartBodyStream` (Mattt Thompson)
* Fix issue caused by passing `nil` as body of multipart form part (Mattt
Thompson)
* Fix issue caused by passing `nil` as destination in download task method
(Mattt Thompson)
* Fix issue with `AFHTTPRequestSerializer` returning a request and silently
handling an error from a `queryStringSerialization` block (Kyle Fuller, Mattt
Thompson)
* Fix potential issues by ensuring `invalidateSessionCancelingTasks` only
executes on main thread (Mattt Thompson)
* Fix potential memory leak caused by deferred opening of output stream
(James Tomson)
* Fix properties on session managers such that default values will not trump
values set in the session configuration (Mattt Thompson)
* Fix README to include explicit call to start reachability manager (Mattt
Thompson)
* Fix request serialization error handling in `AFHTTPSessionManager`
convenience methods (Kyle Fuller, Lars Anderson, Mattt Thompson)
* Fix stray localization macro (Devin McKaskle)
* Fix to ensure connection operation `-copyWithZone:` calls super
implementation (Chris Streeter)
* Fix `UIButton` category to only cancel request for specified state
(@xuzhe, Mattt Thompson)
= 2.3.1 (2014-06-13)
* Fix issue with unsynthesized `streamStatus` & `streamError` properties
on `AFMultipartBodyStream` (Mattt Thompson)
= 2.3.0 (2014-06-11)
* Add check for `AF_APP_EXTENSIONS` macro to conditionally compile
background method that makes API call unavailable to App Extensions in iOS 8
/ OS X 10.10
* Add further explanation for network reachability in documentation (Steven
Fisher)
* Add notification for initial change from
`AFNetworkReachabilityStatusUnknown` to any other state (Jason Pepas,
Sebastian S.A., Mattt Thompson)
* Add tests for AFNetworkActivityIndicatorManager (Dave Weston, Mattt
Thompson)
* Add tests for AFURLSessionManager task progress (Ullrich Schäfer)
* Add `attemptsToRecreateUploadTasksForBackgroundSessions` property, which
attempts Apple's recommendation of retrying a failed upload task if initial
creation did not succeed (Mattt Thompson)
* Add `completionQueue` and `completionGroup` properties to
`AFHTTPRequestOperationManager` (Robert Ryan)
* Change deprecating `AFErrorDomain` in favor of
`AFRequestSerializerErrorDomain` & `AFResponseSerializerErrorDomain` (Mattt
Thompson)
* Change serialization tests to be split over two different files (Mattt
Thompson)
* Change to make NSURLSession subspec not depend on NSURLConnection subspec
(Mattt Thompson)
* Change to make Serialization subspec not depend on NSURLConnection subspec
(Nolan Waite, Mattt Thompson)
* Change `completionHandler` of
`application:handleEventsForBackgroundURLSession:completion:` to be run on
main thread (Padraig Kennedy)
* Change `UIImageView` category to accept any object conforming to
`AFURLResponseSerialization`, rather than just `AFImageResponseSerializer`
(Romans Karpelcevs)
* Fix calculation and behavior of `NSProgress` (Padraig Kennedy, Ullrich
Schäfer)
* Fix deprecation warning for `backgroundSessionConfiguration:` in iOS 8 /
OS X 10.10 (Mattt Thompson)
* Fix implementation of `copyWithZone:` in serializer subclasses (Chris
Streeter)
* Fix issue in Xcode 6 caused by implicit synthesis of overridden `NSStream`
properties (Clay Bridges, Johan Attali)
* Fix KVO handling for `NSURLSessionTask` on iOS 8 / OS X 10.10 (Mattt
Thompson)
* Fix KVO leak for `NSURLSessionTask` (@Zyphrax)
* Fix potential crash caused by attempting to use non-existent error of
failing requests due to URLs exceeding a certain length (Boris Bügling)
* Fix to check existence of `uploadProgress` block inside a referencing
`dispatch_async` to avoid potential race condition (Kyungkoo Kang)
* Fix `UIImageView` category race conditions (Sunny)
* Remove unnecessary default operation response serializer setters (Mattt
Thompson)
= 2.2.4 (2014-05-13)
* Add NSSecureCoding support to all AFNetworking classes (Kyle Fuller, Mattt
Thompson)
* Change behavior of request operation `NSOutputStream` property to only nil
out if `responseData` is non-nil, meaning that no custom object was set
(Mattt Thompson)
* Fix data tasks to not attempt to track progress, and rare related crash
(Padraig Kennedy)
* Fix issue with `-downloadTaskDidFinishDownloading:` not being called
(Andrej Mihajlov)
* Fix KVO leak on invalidated session tasks (Mattt Thompson)
* Fix missing import of `UIRefreshControl+AFNetworking" (@BB9z)
* Fix potential compilation errors on Mac OS X, caused by import order of
`<AssertionMacros.h>`, which signaled an incorrect deprecation warning (Mattt
Thompson)
* Fix race condition in UIImageView+AFNetworking when making several image
requests in quick succession (Alexander Crettenand)
* Update documentation for `-downloadTaskWithRequest:` to warn about blocks
being disassociated on app termination and backgrounding (Robert Ryan)
= 2.2.3 (2014-04-18)
* Fix `AFErrorOrUnderlyingErrorHasCodeInDomain` function declaration for
AFXMLDocumentResponseSerializer (Mattt Thompson)
* Fix error domain check in `AFErrorOrUnderlyingErrorHasCodeInDomain`
(Mattt Thompson)
* Fix `UIImageView` category to only `nil` out request operation properties
belonging to completed request (Mattt Thompson)
* Fix `removesKeysWithNullValues` to respect
`NSJSONReadingMutableContainers` option (Mattt Thompson)
* Change `removesKeysWithNullValues` property to recursively remove null
values from dictionaries nested in arrays (@jldagon)
* Change to not override `Content-Type` header field values set by
`HTTPRequestHeaders` property (Aaron Brager, Mattt Thompson)
= 2.2.2 (2014-04-15)
* Add `removesKeysWithNullValues` property to `AFJSONResponsSerializer` to
automatically remove `NSNull` values in dictionaries serialized from JSON
(Mattt Thompson)
* Add unit test for checking content type (Diego Torres)
* Add `boundary` property to `AFHTTPBodyPart -copyWithZone:`
* Change to accept `id` parameter type in HTTP manager convenience methods
(Mattt Thompson)
* Change to deprecate `setAuthorizationHeaderFieldWithToken:`, in favor of
users specifying an `Authorization` header field value themselves (Mattt
Thompson)
* Change to use `long long` type to prevent a difference in stream size
caps on 32-bit and 64-bit architectures (Yung-Luen Lan, Cédric Luthi)
* Fix calculation of Content-Length in `taskDidSendBodyData` (Christos
Vasilakis)
* Fix for comparison of image view request operations (Mattt Thompson)
* Fix for SSL certificate validation to check status codes at runtime (Dave
Anderson)
* Fix to add missing call to delegate in
`URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:`
* Fix to call `taskDidComplete` if delegate is missing (Jeff Ward)
* Fix to implement `respondsToSelector:` for `NSURLSession` delegate
methods to conditionally respond to conditionally respond to optional
selectors if and only if a custom block has been set (Mattt Thompson)
* Fix to prevent illegal state values from being assigned for
`AFURLConnectionOperation` (Kyle Fuller)
* Fix to re-establish `AFNetworkingURLSessionTaskDelegate` objects after
restoring from a background configuration (Jeff Ward)
* Fix to reduce memory footprint by `nil`-ing out request operation
`outputStream` after closing, as well as image view request operation after
setting image (Teun van Run, Mattt Thompson)
* Remove unnecessary call in class constructor (Bernhard Loibl)
* Remove unnecessary check for `respondsToSelector:` for `UIScreen scale`
in User-Agent string (Samuel Goodwin)
* Update App.net certificate and API base URL (Cédric Luthi)
* Update examples in README (@petard, @orta, Mattt Thompson)
* Update Travis CI icon to use SVG format (Maximilian Tagher)
= 2.2.1 (2014-03-14)
* Fix `-Wsign-conversion` warning in AFURLConnectionOperation (Jesse Collis)
* Fix `-Wshorten-64-to-32` warning (Jesse Collis)
* Remove unnecessary #imports in `UIImageView` & `UIWebView` categories
(Jesse Collis)
* Fix call to `CFStringTransform()` by checking return value before setting
as `User-Agent` (Kevin Cassidy Jr)
* Update `AFJSONResponseSerializer` adding `@autorelease` to relieve memory
pressure (Mattt Thompson, Michal Pietras)
* Update `AFJSONRequestSerializer` to accept `id` (Daren Desjardins)
* Fix small documentation bug (@jkoepcke)
* Fix behavior of SSL pinning. In case of `validatesDomainName == YES`, it
now explicitly uses `SecPolicyCreateSSL`, which also validates the domain
name. Otherwise, `SecPolicyCreateBasicX509` is used.
`AFSSLPinningModeCertificate` now uses `SecTrustSetAnchorCertificates`, which
allows explicit specification of all trusted certificates. For
`AFSSLPinningModePublicKey`, the number of trusted public keys determines if
the server should be trusted. (Oliver Letterer, Eric Allam)
= 2.2.0 (2014-02-25)
* Add default initializer to make `AFHTTPRequestOperationManager`
consistent with `AFHTTPSessionManager` (Marcelo Fabri)
* Add documentation about `UIWebView` category and implementing
`UIWebViewDelegate` (Mattt Thompson)
* Add missing `NSCoding` and `NSCopying` implementations for
`AFJSONRequestSerializer` (Mattt Thompson)
* Add note about use of `-startMonitoring` in
`AFNetworkReachabilityManager` (Mattt Thompson)
* Add setter for needsNewBodyStream block (Carmen Cerino)
* Add support for specifying a response serializer on a per-instance of
`AFURLSessionManagerTaskDelegate` (Blake Watters)
* Add `AFHTTPRequestSerializer
-requestWithMultipartFormRequest:writingStreamContentsToFile:completionHandler
:` as a workaround for a bug in NSURLSession that removes the Content-Length
header from streamed requests (Mattt Thompson)
* Add `NSURLRequest` factory properties on `AFHTTPRequestSerializer` (Mattt
Thompson)
* Add `UIRefreshControl+AFNetworking` (Mattt Thompson)
* Change example project to enable certificate pinning (JP Simard)
* Change to allow self-signed certificates (Frederic Jacobs)
* Change to make `reachabilityManager` property readwrite (Mattt Thompson)
* Change to sort `NSSet` members during query string parameter
serialization (Mattt Thompson)
* Change to use case sensitive compare when sorting keys in query string
serialization (Mattt Thompson)
* Change to use xcpretty instead of xctool for automated testing (Kyle
Fuller, Marin Usalj, Carson McDonald)
* Change to use `@selector` values as keys for associated objects (Mattt
Thompson)
* Change `setImageWithURL:placeholder:`, et al. to only set placeholder
image if not `nil` (Alejandro Martinez)
* Fix auto property synthesis warnings (Oliver Letterer)
* Fix domain name validation for SSL certificates (Oliver Letterer)
* Fix issue with session task delegate KVO observation (Kyle Fuller)
* Fix placement of `baseURL` method declaration (Oliver Letterer)
* Fix podspec linting error (Ari Braginsky)
* Fix potential concurrency issues by adding lock around setting
`isFinished` state in `AFURLConnectionOperation` (Mattt Thompson)
* Fix potential vulnerability caused by hard-coded multipart form data
boundary (Mathias Bynens, Tom Van Goethem, Mattt Thompson)
* Fix protocol name in #pragma mark declaration (@sevntine)
* Fix regression causing inflated images to have incorrect orientation
(Mattt Thompson)
* Fix to `AFURLSessionManager` `NSCoding` implementation, to accommodate
`NSURLSessionConfiguration` no longer conforming to `NSCoding`.
* Fix Travis CI integration (Kyle Fuller, Marin Usalj, Carson McDonald)
* Fix various static analyzer warnings (Philippe Casgrain, Jim Young,
Steven Fisher, Mattt Thompson)
* Fix with download progress calculation of completion units (Kyle Fuller)
* Fix Xcode 5.1 compiler warnings (Nick Banks)
* Fix `AFHTTPRequestOperationManager` to default
`shouldUseCredentialStorage` to `YES`, as documented (Mattt Thompson)
* Remove Unused format property in `AFJSONRequestSerializer` (Mattt
Thompson)
* Remove unused `acceptablePathExtensions` class method in
`AFJSONRequestSerializer` (Mattt Thompson)
* Update #ifdef declarations in UIKit categories to be simpler (Mattt
Thompson)
* Update podspec to includ social_media_url (Kyle Fuller)
* Update types for 64 bit architecture (Bruno Tortato Furtado, Mattt
Thompson)
= 2.1.0 (2014-01-16)
* Add CONTRIBUTING (Kyle Fuller)
* Add domain name verification for SSL certificates (Oliver Letterer)
* Add leaf certificate checking (Alex Leverington, Carson McDonald, Mattt
Thompson)
* Add test case for stream failure handling (Kyle Fuller)
* Add underlying error properties to response serializers to forward errors
to subsequent validation steps (Mattt Thompson)
* Add `AFImageCache` protocol, to allow for custom image caches to be
specified for `UIImageView` (Mattt Thompson)
* Add `error` out parameter for request serializer, deprecating existing
request constructor methods (Adam Becevello)
* Change request serializer protocol to take id type for parameters (Mattt
Thompson)
* Change to add validation of download task responses (Mattt Thompson)
* Change to force upload progress, by using original request Content-Length
(Mateusz Malczak)
* Change to use `NSDictionary` object literals for `NSError` `userInfo`
construction (Mattt Thompson)
* Fix #pragma declaration to be NSURLConnectionDataDelegate, rather than
NSURLConnectionDelegate (David Paschich)
* Fix a bug when appending a file part to multipart request from a URL
(Kyle Fuller)
* Fix analyzer warning about weak receiver being set to nil, capture strong
reference (Stewart Gleadow)
* Fix appending file part to multipart request to use suggested file name,
rather than temporary one (Kyle Fuller)
* Fix availability macros for network activity indicator (Mattt Thompson)
* Fix crash in iOS 6.1 caused by KVO on `isCancelled` property of
`AFURLConnectionOperation` (Sam Page)
* Fix dead store issues in `AFSecurityPolicy` (Andrew Hershberger)
* Fix incorrect documentation for `-HTTPRequestOperationWithRequest:...`
(Kyle Fuller)
* Fix issue in reachability callbacks, where reachability managers created
for a particular domain would initially report no reachability (Mattt
Thompson)
* Fix logic for handling data task turning into download task (Kyle Fuller)
* Fix property list response serializer to handle 204 response (Kyle Fuller)
* Fix README multipart example (Johan Forssell)
* Fix to add check for non-nil delegate in
`URLSession:didCompleteWithError:` (Kaom Te)
* Fix to dramatically improve creation of images in
`AFInflatedImageFromResponseWithDataAtScale`, including handling of CMYK, 16
/ 32 bpc images, and colorspace alpha settings (Robert Ryan)
* Fix Travis CI integration and unit testing (Kyle Fuller, Carson McDonald)
* Fix typo in comments (@palringo)
* Fix UIWebView category to use supplied success callback (Mattt Thompson)
* Fix various static analyzer warnings (Kyle Fuller, Jesse Collis, Mattt
Thompson)
* Fix `+batchOfRequestOperations:...` completion block to execute in
`dispatch_async` (Mattt Thompson)
* Remove synchronous `SCNetworkReachabilityGetFlags` call when initializing
managers, which had the potential to block in certain network conditions
(Yury Korolev, Mattt Thompson)
* Remove unnecessary check for completionHandler in HTTP manager (Mattt
Thompson)
* Remove unused conditional clauses (Luka Bratos)
* Update documentation for `AFCompoundResponseSerializer` (Mattt Thompson)
* Update httpbin certificates (Carson McDonald)
* Update notification constant names to be consistent with `NSURLSession`
terminology (Mattt Thompson)
= 2.0.3 (2013-11-18)
* Fix a bug where `AFURLConnectionOperation -pause` did not correctly reset
the state of `AFURLConnectionOperation`, causing the Network Thread to enter
an infinite loop (Erik Chen)
* Fix a bug where `AFURLConnectionOperation -cancel` does not set the
appropriate error on the `NSOperation` (Erik Chen)
* Fix to post `AFNetworkingTaskDidFinishNotification` only on main queue
(Jakub Hladik)
* Fix issue where the query string serialization block was not used (Kevin
Harwood)
* Fix project file and repository directory items (Andrew Newdigate)
* Fix `NSURLSession` subspec (Mattt Thompson)
* Fix to session task delegate KVO by moving observer removal to
`-didCompleteWithError:` (Mattt Thompson)
* Add AFNetworking 1.x behavior for image construction in inflation to
ensure correct orientation (Mattt Thompson)
* Add `NSParameterAssert` for internal task constructors in order to catch
invalid constructions early (Mattt Thompson)
* Update replacing `NSParameterAssert` with early `nil` return if session
was unable to create a task (Mattt Thompson)
* Update `AFHTTPRequestOperationManager` and `AFHTTPSessionManager` to use
relative `self class` to create class constructor instances (Bogdan
Poplauschi)
* Update to break out of loop if output stream does not have space to write
bytes (Mattt Thompson)
* Update documentation and README with various fixes (Max Goedjen, Mattt
Thompson)
* Remove unnecessary willChangeValueForKey and didChangeValueForKey method
calls (Mindaugas Vaičiūnas)
* Remove deletion of all task delegates in
`URLSessionDidFinishEventsForBackgroundURLSession:` (Jeremy Mailen)
* Remove empty, unused `else` branch (Luka Bratos)
= 2.0.2 (2013-10-29)
* Add `UIWebView
-loadRequest:MIMEType:textEncodingName:progress:success:failure:` (Mattt
Thompson)
* Fix iOS 6 compatibility in `AFHTTPSessionManager` &
`UIProgressView+AFNetworking` (Olivier Halligon, Mattt Thompson)
* Fix issue writing partial data to output stream (Kyle Fuller)
* Fix behavior for `nil` response in request operations (Marcelo Fabri)
* Fix implementation of
batchOfRequestOperations:progressBlock:completionBlock: for nil when passed
empty operations parameter (Mattt Thompson)
* Update `AFHTTPSessionManager` to allow `-init` and `initWithConfig:` to
work (Ben Scheirman)
* Update `AFRequestOperation` to default to `AFHTTPResponseSerializer` (Jiri
Techet)
* Update `AFHTTPResponseSerializer` to remove check for nonzero responseData
length (Mattt Thompson)
* Update `NSCoding` methods to use NSStringFromSelector(@selector()) pattern
instead of `NSString` literals (Mattt Thompson)
* Update multipart form stream to set Content-Length after setting request
stream (Mattt Thompson)
* Update documentation with outdated references to `AFHTTPSerializer` (Bruno
Koga)
* Update documentation and README with various fixes (Jon Chambers, Mattt
Thompson)
* Update files to remove executable privilege (Kyle Fuller)
= 2.0.1 (2013-10-10)
* Fix iOS 6 compatibility (Matt Baker, Mattt Thompson)
* Fix example applications (Sam Soffes, Kyle Fuller)
* Fix usage of `NSSearchPathForDirectoriesInDomains` in README (Leo Lou)
* Fix names of exposed private methods `downloadProgress` and
`uploadProgress` (Hermes Pique)
* Fix initial upload/download task progress updates (Vlas Voloshin)
* Fix podspec to include `AFNetworking.h` `#import` (@haikusw)
* Fix request serializers to not override existing header field values with
defaults (Mattt Thompson)
* Fix unused format string placeholder (Thorsten Lockert)
* Fix `AFHTTPRequestOperation -initWithCoder:` to call `super` (Josh Avant)
* Fix `UIProgressView` selector name (Allen Tu)
* Fix `UIButton` response serializer (Sam Grossberg)
* Fix `setPinnedCertificates:` and pinned public keys (Kyle Fuller)
* Fix timing of batched operation completion block (Denys Telezhkin)
* Fix `GCC_WARN_ABOUT_MISSING_NEWLINE` compiler warning (Chuck Shnider)
* Fix a format string missing argument issue in tests (Kyle Fuller)
* Fix location of certificate chain bundle location (Kyle Fuller)
* Fix memory leaks in AFSecurityPolicyTests (Kyle Fuller)
* Fix potential concurrency issues in `AFURLSessionManager` by adding locks
around access to mutiple delegates dictionary (Mattt Thompson)
* Fix unused variable compiler warnings by wrapping `OSStatus` and
`NSCAssert` with NS_BLOCK_ASSERTIONS macro (Mattt Thompson)
* Fix compound serializer error handling (Mattt Thompson)
* Fix string encoding for responseString (Juan Enrique)
* Fix `UIImageView -setBackgroundImageWithRequest:` (Taichiro Yoshida)
* Fix regressions nested multipart parameters (Mattt Thompson)
* Add `responseObject` property to `AFHTTPRequestOperation` (Mattt Thompson)
* Add support for automatic network reachability monitoring for request
operation and session managers (Mattt Thompson)
* Update documentation and README with various corrections and fixes
(@haikusw, Chris Hellmuth, Dave Caunt, Mattt Thompson)
* Update default User-Agent such that only ASCII character set is used
(Maximillian Dornseif)
* Update SSL pinning mode to have default pinned certificates by default
(Kevin Harwood)
* Update `AFSecurityPolicy` to use default authentication handling unless a
credential exists for the server trust (Mattt Thompson)
* Update Prefix.pch (Steven Fisher)
* Update minimum iOS test target to iOS 6
* Remove unused protection space block type (Kyle Fuller)
* Remove unnecessary Podfile.lock (Kyle Fuller)
= 2.0.0 (2013-09-27)
====================
= 1.3.4 (2014-04-15)
* Fix `AFHTTPMultipartBodyStream` to randomly generate form boundary, to
prevent attack based on a known value (Mathias Bynens, Tom Van Goethem, Mattt
Thompson)
* Fix potential non-terminating loop in `connection:didReceiveData:` (Mattt
Thompson)
* Fix SSL certificate validation to provide a human readable Warning when
SSL Pinning fails (Maximillian Dornseif)
* Fix SSL certificate validation to assert that no impossible pinning
configuration exists (Maximillian Dornseif)
* Fix to check `CFStringTransform()` call for success before using result
(Kevin Cassidy Jr)
* Fix to prevent unused assertion results with macros (Indragie Karunaratne)
* Fix to call call `SecTrustEvaluate` before calling
`SecTrustGetCertificateCount` in SSL certificate validation (Josh Chung)
* Fix to add explicit cast to `NSUInteger` in format string (Alexander
Kempgen)
* Remove unused variable `kAFStreamToStreamBufferSize` (Alexander Kempgen)
= 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)