Skip to content

Commit b4cabf9

Browse files
Merge pull request #173 from nextcloud/fix
Accept fix
2 parents 8ff38b8 + 5f1956a commit b4cabf9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/NextcloudKit/NKCommon.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ public struct NKCommon: Sendable {
297297
headers.update(.userAgent(customUserAgent))
298298
}
299299
headers.update(.contentType(contentType))
300+
headers.update(name: "Accept", value: contentType)
300301
headers.update(name: "OCS-APIRequest", value: "true")
301302
for (key, value) in options?.customHeader ?? [:] {
302303
headers.update(name: key, value: value)

0 commit comments

Comments
 (0)