Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription

let package = Package(
name: "DZNetworking",
platforms: [.iOS(.v13), .macOS(.v10_15), .watchOS(.v6), .tvOS(.v12)],
platforms: [.iOS(.v16), .macOS(.v13), .watchOS(.v9), .tvOS(.v16)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
Expand Down
2 changes: 1 addition & 1 deletion Sources/DZNetworking/Core/DZURLSession+Requests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ extension DZURLSession {
if !headers.isEmpty {
headers.forEach { tuple in
if let val = tuple.1 {
mutableRequest.setValue(tuple.1, forHTTPHeaderField: tuple.0)
mutableRequest.setValue(val, forHTTPHeaderField: tuple.0)
}
else {
// Removes the value
Expand Down
5 changes: 2 additions & 3 deletions Sources/DZNetworking/Core/DZURLSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ open class DZURLSession: NSObject, @unchecked Sendable {
/// Default operation queue to use for the receiver
///
/// You can create and use your own, or use this prepared one for convenience
/// - Parameter backgroundSession: when `true`, limits the number of simultaneous requests to `1`
/// - Returns: operation queue for the internal `URLSession`
public class func defaultOperationQueue(for backgroundSession: Bool = false) -> OperationQueue {
public class func defaultOperationQueue() -> OperationQueue {
let opQueue = OperationQueue()
opQueue.maxConcurrentOperationCount = backgroundSession ? 1 : 5
opQueue.maxConcurrentOperationCount = 10
return opQueue
}

Expand Down
Loading
Loading