We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 356b7e9 commit 6280425Copy full SHA for 6280425
1 file changed
OAuth2/OAuth2CodeGrant.swift
@@ -61,6 +61,7 @@ public class OAuth2CodeGrant: OAuth2 {
61
let post = NSMutableURLRequest(URL: comp.URL!)
62
post.HTTPMethod = "POST"
63
post.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
64
+ post.setValue("application/json", forHTTPHeaderField: "Accept")
65
post.HTTPBody = body?.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true)
66
67
return post
0 commit comments