From f330fd503b4a277d69f678cd786404ce74b583dd Mon Sep 17 00:00:00 2001 From: Peter Mein Date: Tue, 8 Jan 2019 12:40:56 +0100 Subject: [PATCH] Added content type headers to sentry requests (#205) --- recipe/sentry.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipe/sentry.php b/recipe/sentry.php index 1ab88fa..91fcc81 100644 --- a/recipe/sentry.php +++ b/recipe/sentry.php @@ -82,6 +82,7 @@ static function (&$value) use ($config) { $releasesApiUrl ) ->header(sprintf('Authorization: Bearer %s', $config['token'])) + ->header('Content-Type: application/json') ->body($releaseData) ->getJson(); @@ -112,6 +113,7 @@ static function (&$value) use ($config) { $releasesApiUrl . $response['version'] . '/deploys/' ) ->header(sprintf('Authorization: Bearer %s', $config['token'])) + ->header('Content-Type: application/json') ->body($deployData) ->getJson();