Skip to content

Commit

Permalink
Fix content-type in client_credentials oauth flow (usebruno#2039)
Browse files Browse the repository at this point in the history
  • Loading branch information
PushpenderSaini0 authored Apr 9, 2024
1 parent e7ff0ba commit 484f6ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bruno-electron/src/ipc/network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const configureRequest = async (
const { data: clientCredentialsData, url: clientCredentialsAccessTokenUrl } =
await transformClientCredentialsRequest(requestCopy);
request.method = 'POST';
request.headers['content-type'] = 'application/x-www-form-urlencoded';
request.data = clientCredentialsData;
request.url = clientCredentialsAccessTokenUrl;
break;
Expand Down

0 comments on commit 484f6ef

Please sign in to comment.