From 7980f3be6566c0a06c82765f595b6c591ed9a0fa Mon Sep 17 00:00:00 2001 From: Joakim Lindqvist Date: Tue, 14 Apr 2026 16:56:49 +0200 Subject: 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 --- src/zenhttp/httpclientauth.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/zenhttp/httpclientauth.cpp') 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) -- cgit v1.2.3