diff --git a/Sources/NextcloudKit/NKCommon.swift b/Sources/NextcloudKit/NKCommon.swift index bd461328..f100ad2c 100644 --- a/Sources/NextcloudKit/NKCommon.swift +++ b/Sources/NextcloudKit/NKCommon.swift @@ -297,6 +297,7 @@ public struct NKCommon: Sendable { headers.update(.userAgent(customUserAgent)) } headers.update(.contentType(contentType)) + headers.update(name: "Accept", value: contentType) headers.update(name: "OCS-APIRequest", value: "true") for (key, value) in options?.customHeader ?? [:] { headers.update(name: key, value: value)