Skip to content

Commit adc84fa

Browse files
authored
Merge pull request #226 from P24L/fix/register-push-content-type
Fix registerPush and unregisterPush Content-Type header
2 parents f9b0cb8 + 1d5a6f4 commit adc84fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extension ATProtoKit {
6363
forRequest: requestURL,
6464
andMethod: .post,
6565
acceptValue: "application/json",
66-
contentTypeValue: nil,
66+
contentTypeValue: "application/json",
6767
authorizationValue: "Bearer \(accessToken)"
6868
)
6969

Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extension ATProtoKit {
6161
forRequest: requestURL,
6262
andMethod: .post,
6363
acceptValue: "application/json",
64-
contentTypeValue: nil,
64+
contentTypeValue: "application/json",
6565
authorizationValue: "Bearer \(accessToken)"
6666
)
6767

0 commit comments

Comments
 (0)