This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch dropwizard-5
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 41abf1b0896d6a754fde61aa24eb86fa005b2b85
Author: Robert Newson <[email protected]>
AuthorDate: Sat Mar 28 18:59:38 2026 +0000

    ask for all errors in json form
---
 src/nouveau/src/nouveau_api.erl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/nouveau/src/nouveau_api.erl b/src/nouveau/src/nouveau_api.erl
index 2e8b1c37d..5ae7c4ce4 100644
--- a/src/nouveau/src/nouveau_api.erl
+++ b/src/nouveau/src/nouveau_api.erl
@@ -41,7 +41,8 @@
     make_purge/3
 ]).
 
--define(JSON_CONTENT_TYPE, {"Content-Type", "application/json"}).
+-define(JSON_CONTENT_TYPE, {<<"content-type">>, <<"application/json">>}).
+-define(ACCEPT, {<<"accept">>, <<"application/json">>}).
 
 -deprecated([
     {purge_doc, 4, "replaced by updates/2"},
@@ -376,7 +377,7 @@ send_if_enabled(Path, ReqHeaders, Method, ReqBody, 
RemainingTries) ->
                 gun_pool:request(
                     Method,
                     Path,
-                    [nouveau_gun:host_header() | ReqHeaders],
+                    [nouveau_gun:host_header(), ?ACCEPT | ReqHeaders],
                     ReqBody
                 )
             of

Reply via email to