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