We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ff38b8 + 5f1956a commit b4cabf9Copy full SHA for b4cabf9
1 file changed
Sources/NextcloudKit/NKCommon.swift
@@ -297,6 +297,7 @@ public struct NKCommon: Sendable {
297
headers.update(.userAgent(customUserAgent))
298
}
299
headers.update(.contentType(contentType))
300
+ headers.update(name: "Accept", value: contentType)
301
headers.update(name: "OCS-APIRequest", value: "true")
302
for (key, value) in options?.customHeader ?? [:] {
303
headers.update(name: key, value: value)
0 commit comments