 
   // MARK: - Networking
 
-  private let session = URLSession(configuration: URLSessionConfiguration.ephemeral)
+  private lazy var session = {
+    return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
+  }()
 
   private func performNetworkRequest(for router: Router, promise: Promise<String, NSError>) {
     let task: URLSessionDataTask?

import Foundation
import BrightFutures

open class PactVerificationService {
  public let url: String
  public let port: Int
  open var baseUrl: String {
    return "\(url):\(port)"
  }

    }
  }

  public init(url: String = "http://localhost", port: Int = 1234, allowInsecureCertificates: Bool = false) {
    self.url = url
    self.port = port
    self.allowInsecureCertificates = allowInsecureCertificates

    super.init()
    Router.baseURLString = baseUrl
  }

