From 183e7ddcce45a3d772b331e5cf00685a42908b7b Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Thu, 27 Feb 2025 11:11:39 +0100 Subject: [PATCH] Remove duplicate Content-type header The Grafana plugin is broken, because the generated request has two http header (Content-type and Content-Type). The later one, it the correct header and its added by \Deployer\Utility\Httpie::jsonBody --- contrib/grafana.php | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/grafana.php b/contrib/grafana.php index eba5c6aa3..9c93dfd4a 100644 --- a/contrib/grafana.php +++ b/contrib/grafana.php @@ -61,7 +61,6 @@ Httpie::post($config['url']) ->header('Authorization', 'Bearer ' . $config['token']) - ->header('Content-type', 'application/json') ->jsonBody($params) ->send(); });