Skip to content

Commit

Permalink
Add a default delegate value to URLSessionProxyDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Dec 24, 2021
1 parent 792e84d commit db9e385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PulseCore/URLSessionProxyDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, UR

/// - parameter logger: By default, creates a logger with `LoggerStore.default`.
/// - parameter delegate: The "actual" session delegate, strongly retained.
public init(logger: NetworkLogger = .init(), delegate: URLSessionDelegate?) {
public init(logger: NetworkLogger = .init(), delegate: URLSessionDelegate? = nil) {
self.actualDelegate = delegate
self.taskDelegate = delegate as? URLSessionTaskDelegate
self.interceptedSelectors = [
Expand Down

0 comments on commit db9e385

Please sign in to comment.