Skip to content

Commit 5617c4d

Browse files
committed
adding .shared
1 parent 43fd210 commit 5617c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIURLSession/URLSessionTransport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public struct URLSessionTransport: ClientTransport {
7878
/// Creates a new configuration with the provided session.
7979
/// - Parameter session: The URLSession used for performing HTTP operations.
8080
/// If none is provided, the system uses the shared URLSession.
81-
public init(session: URLSession) { self.init(session: session, implementation: .platformDefault) }
81+
public init(session: URLSession = .shared) { self.init(session: session, implementation: .platformDefault) }
8282
/// Specifies the mode in which HTTP request and response bodies are processed.
8383
public struct HTTPBodyProcessingMode: Sendable {
8484
/// Exposing the internal implementation directly.

0 commit comments

Comments
 (0)