Skip to content

Commit 548a9be

Browse files
committed
fix(auth): ensure to set proper "Content-Type" HTTP request header spotify-api#293
1 parent 0f3eda6 commit 548a9be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/managers/Auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export class AuthManager {
3939
headers: {
4040
"Content-Type": "application/x-www-form-urlencoded",
4141
},
42+
data: {},
4243
});
4344

4445
return data.access_token;
@@ -78,6 +79,7 @@ export class AuthManager {
7879
"Content-Type": "application/x-www-form-urlencoded",
7980
Authorization: `Basic ${encodeBase64(options.clientID + ":" + options.clientSecret)}`,
8081
},
82+
data: {},
8183
});
8284

8385
return {

0 commit comments

Comments
 (0)