diff options
| author | Joakim Lindqvist <[email protected]> | 2026-04-14 16:56:49 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-14 16:56:49 +0200 |
| commit | 7980f3be6566c0a06c82765f595b6c591ed9a0fa (patch) | |
| tree | ffe8decaebb89fcb9dd355c47dff51e825dd98d4 /src/zenhttp/httpclientauth.cpp | |
| parent | 5.8.4 (diff) | |
| download | zen-7980f3be6566c0a06c82765f595b6c591ed9a0fa.tar.xz zen-7980f3be6566c0a06c82765f595b6c591ed9a0fa.zip | |
fix OAuth client credentials content type override (#957)
- Bugfix: OAuth client credentials token request now sends correct `application/x-www-form-urlencoded` content type
- Improvement: HTTP client Content-Type in additional headers now overrides the payload content type
Diffstat (limited to 'src/zenhttp/httpclientauth.cpp')
| -rw-r--r-- | src/zenhttp/httpclientauth.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/zenhttp/httpclientauth.cpp b/src/zenhttp/httpclientauth.cpp index 0432e50ef..26a7298b3 100644 --- a/src/zenhttp/httpclientauth.cpp +++ b/src/zenhttp/httpclientauth.cpp @@ -50,8 +50,6 @@ namespace zen { namespace httpclientauth { IoBuffer Payload{IoBuffer::Wrap, Body.data(), Body.size()}; - // TODO: ensure this gets the right Content-Type passed along - HttpClient::Response Response = Http.Post("", Payload, {{"Content-Type", "application/x-www-form-urlencoded"}}); if (!Response || Response.StatusCode != HttpResponseCode::OK) |