Permalink
Commits on Oct 14, 2016
  1. Merge pull request #3751 from 0xced/deprecate-stringEncoding

    Deprecate the unused stringEncoding property of AFHTTPResponseSerializer
    0xced committed on GitHub Oct 14, 2016
Commits on Oct 13, 2016
  1. Deprecate AFHTTPResponseSerializer.stringEncoding

    The `stringEncoding` property is never used. It was probably inroduced by error in 9a40c0d. It was probably a copy/paste error as the same property also exists on `AFHTTPRequestSerializer` where it’s actually used.
    0xced committed Oct 13, 2016
Commits on Oct 12, 2016
  1. Merge pull request #3694 from 0xced/fix-reachability-tests

    Fix reachability tests
    kcharwood committed on GitHub Oct 12, 2016
  2. Remove assertion that status in callback == reachabilityManager status

    The status passed in callbacks (both block and notification) is captured before the callbacks are dispatched on the main thread. It is thus possible that the reachabilityManager status change in the meantime.
    
    Users MUST use the status parameter for the block callback or the `AFNetworkingReachabilityNotificationStatusItem` user info key for the notification.
    0xced committed Oct 12, 2016
  3. Enable domain reachability tests

    0xced committed Sep 22, 2016
  4. Fulfill the expectation once the network status becomes reachable

    Do not use XCTAssertEqual(reachable, ...) because it might transition to AFNetworkReachabilityStatusNotReachable before becoming reachable.
    0xced committed Sep 22, 2016
  5. Remove unnecessary assert

    This pattern does not make sense at all because the assert can never fail.
    
    if (condition) {
        XCTAssert(condition, @"comment");
    }
    0xced committed Sep 22, 2016
  6. Merge pull request #3748 from AFNetworking/httpbin-base-url

    Enable custom httpbin URL with HTTPBIN_BASE_URL environment variable
    0xced committed on GitHub Oct 12, 2016
Commits on Oct 11, 2016
  1. Enable custom httpbin URL with HTTPBIN_BASE_URL environment variable

    Editing the scheme and checking the `HTTPBIN_BASE_URL` box enables running the test suites on a default local installation of httpbin.
    0xced committed Oct 7, 2016
  2. Add test method to wait for common timeout without handler

    skyline75489 committed with kcharwood Oct 11, 2016
  3. Removed ambiguous array creation. According to documentation SecTrust…

    …CreateWithCertificates takes SecCertificateRef object or an array of certificates.
    sgl0v committed with kcharwood Sep 9, 2016
Commits on Oct 10, 2016
  1. Do not crash when passing invalid JSON for serialization

    Fixes #3711
    
    The `NSURLErrorCannotDecodeContentData` code is not ideal, but `AFURLRequestSerializationErrorDomain` should define its own error codes anyway.
    0xced committed with kcharwood Sep 30, 2016
  2. Merge pull request #3735 from AFNetworking/3594

    Fixed crash around customizing NSURLCache size for < iOS 8.2
    kcharwood committed on GitHub Oct 10, 2016
  3. Added a comment

    kcharwood committed Oct 10, 2016
  4. Removed explicit xcpretty install

    kcharwood committed Oct 10, 2016
  5. Merge pull request #3733 from skyline75489/master

    Fixed issue where UIWebView extension did not preserve all of the request information
    kcharwood committed on GitHub Oct 10, 2016
  6. Merge pull request #3653 from tclementdev/master

    Handle Error Pointers according to Cocoa Convention
    kcharwood committed on GitHub Oct 10, 2016
Commits on Oct 9, 2016
  1. Use NSURLRequest to construct dataTask. Fix #3724

    skyline75489 committed Oct 9, 2016
Commits on Oct 6, 2016
  1. Add test asserts for non-nil errors.

    tclementdev committed Oct 6, 2016
  2. Fix class name comment.

    tclementdev committed Oct 6, 2016
  3. Add json/plist serializer tests for better code coverage.

    tclementdev committed Oct 6, 2016
  4. Fixed bug with webview delegate callback

    kcharwood committed with kcharwood Oct 6, 2016
  5. Fixed issue where response serializers did not inherit super class co…

    …pying
    kcharwood committed with kcharwood Jun 6, 2016
  6. Make it impossible to set a security policy with pinning on insecure …

    …URLs
    
    ### Before this commit
    Setting a security policy configured with `AFSSLPinningModeCertificate` or `AFSSLPinningModePublicKey` on a AFHTTPSessionManager instance configured with an insecure `http` base URL was valid. Requests made with this manager would always succeed since the `-[AFURLSessionManager URLSession:didReceiveChallenge:completionHandler:]` would never be called and thus the security policy would never be evaluated.
    
    ### After this commit
    Setting a security policy configured with `AFSSLPinningModeCertificate` or `AFSSLPinningModePublicKey` on a AFHTTPSessionManager instance configured with an insecure `http` base URL will throw an exception. This will force the manager to be configured with a secure `https` URL.
    
    Note that properly configuring App Transport Security (ATS) would also solve this issue since insecure connections would fail anyway, but this is a *belt and suspenders* solution.
    0xced committed with kcharwood Sep 19, 2016
  7. Rewrite code flow to clarify error handling.

    tclementdev committed Oct 6, 2016
  8. Make sure we check the return values before handling the error object…

    …s (this is the correct way to handle errors as described in Apple's documentation).
    tclementdev committed Oct 3, 2016
Commits on Oct 5, 2016
  1. Disabling background manager tests for Xcode 8 due to rdar://28588583

    kcharwood committed with kcharwood Oct 3, 2016
  2. Removed code signing for test targets

    Trying `FASTLANE_EXPLICIT_OPEN_SIMULATOR=1`
    kcharwood committed with kcharwood Oct 5, 2016
  3. Xcode 8 Compatibility for Travis CI

    - Updated Test Runners for Travis
    - Updated project settings for Xcode 8
    - Updated macOS example platform
    kcharwood committed with kcharwood Oct 3, 2016
  4. Extract common URLs into AFTestCase

    There was some repetition in URL creation for unit tests. Extracting the common URLs (png, jpeg, delay, status code) makes it easier run the test suites on a local copy of httpbin with the `python -m httpbin.core` command.
    0xced committed with kcharwood Oct 5, 2016
Commits on Oct 3, 2016
  1. Merge pull request #3718 from 0xced/fix-potential-KVO-crasher

    Fixed potential KVO crasher for URL Session Task delegates
    kcharwood committed on GitHub Oct 3, 2016