Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Nov 12, 2024
1 parent 738c9c5 commit f7c4e44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Sources/NextcloudKit/NKCommon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,12 @@ public class NKCommon: NSObject {
if let paginateCount = options.paginateCount {
headers.update(name: "X-NC-Paginate-Count", value: "\(paginateCount)")
}
if let paginateOffset = options.paginateOffset {
headers.update(name: "X-NC-Paginate-Offset", value: "\(paginateOffset)")
}
if let paginateToken = options.paginateToken {
headers.update(name: "X-NC-Paginate-Token", value: paginateToken)
}
}
return headers
}
Expand Down
3 changes: 0 additions & 3 deletions Sources/NextcloudKit/NKRequestOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class NKRequestOptions: NSObject {
var removeProperties: [NKProperties]
var paginate: Bool
var paginateToken: String?
var paginateTotal: Int?
var paginateOffset: Int?
var paginateCount: Int?
var queue: DispatchQueue
Expand All @@ -35,7 +34,6 @@ public class NKRequestOptions: NSObject {
removeProperties: [NKProperties] = [],
paginate: Bool = false,
paginateToken: String? = nil,
paginateTotal: Int? = nil,
paginateOffset: Int? = nil,
paginateCount: Int? = nil,
queue: DispatchQueue = .main) {
Expand All @@ -52,7 +50,6 @@ public class NKRequestOptions: NSObject {
self.removeProperties = removeProperties
self.paginate = paginate
self.paginateToken = paginateToken
self.paginateTotal = paginateTotal
self.paginateOffset = paginateOffset
self.paginateCount = paginateCount
self.queue = queue
Expand Down

0 comments on commit f7c4e44

Please sign in to comment.