Add explicit Accept: application/json

This commit is contained in:
Agus Zubiaga
2025-12-31 10:57:18 -03:00
parent 944634e98c
commit 808d262c3a

View File

@@ -130,6 +130,7 @@ impl OAuthClient {
let request = Request::builder()
.uri(token_endpoint.clone())
.header("Content-Type", "application/x-www-form-urlencoded")
.header("Accept", "application/json")
.body(AsyncBody::from(form))
.context("Failed to build token exchange request")?;