From aebfbd97dc5b6cee52a3d26377fcd7e2f4ad0178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Garc=C3=ADa?= <lucas@codeccoop.org> Date: Mon, 11 Nov 2024 02:14:13 +0100 Subject: [PATCH] feat: application/json as default content type --- includes/class-http-client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-http-client.php b/includes/class-http-client.php index a12daed..79e9690 100644 --- a/includes/class-http-client.php +++ b/includes/class-http-client.php @@ -303,7 +303,8 @@ class Http_Client return array_merge([ 'host' => $_SERVER['HTTP_HOST'], 'referer' => $_SERVER['HTTP_REFERER'], - 'accept-language' => Http_Client::get_locale() + 'accept-language' => Http_Client::get_locale(), + 'content-type' => 'application/json', ], (array) $headers); } -- GitLab