Permalink
Browse files

Use the shared NSURLSession

  • Loading branch information...
joemasilotti committed Jan 10, 2016
1 parent f58a2d4 commit ecb11dee529b04992ddd7120e6d9fc8506876eeb
Showing with 1 addition and 1 deletion.
  1. +1 −1 App/HTTPClient.swift
View
@@ -13,7 +13,7 @@ typealias HTTPResult = (NSData?, ErrorType?) -> Void
class HTTPClient {
private let session: URLSessionProtocol
init(session: URLSessionProtocol = NSURLSession()) {
init(session: URLSessionProtocol = NSURLSession.sharedSession()) {
self.session = session
}

0 comments on commit ecb11de

Please sign in to comment.