Send correct Accept header for API requests

This commit is contained in:
Shadowfacts 2019-09-24 22:24:57 -04:00
parent a38f9df3af
commit a2a2feef58
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public class Client {
if let accessToken = accessToken {
urlRequest.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
}
urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
return urlRequest
}