diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-16 00:08:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-16 00:08:32 +0000 |
commit | b0f27742e78a4aa4208c271536b6b9d84c53b49e (patch) | |
tree | be4664298b0a70efd233e23751aab518ad3e1f4e /lib/sentry | |
parent | 600ca978129e3ccab758f57d60786cefe66ad775 (diff) | |
download | gitlab-ce-b0f27742e78a4aa4208c271536b6b9d84c53b49e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry')
-rw-r--r-- | lib/sentry/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sentry/client.rb b/lib/sentry/client.rb index 20c919a97ff..490f82c4678 100644 --- a/lib/sentry/client.rb +++ b/lib/sentry/client.rb @@ -33,6 +33,7 @@ module Sentry def request_params { headers: { + 'Content-Type' => 'application/json', 'Authorization' => "Bearer #{@token}" }, follow_redirects: false @@ -47,7 +48,7 @@ module Sentry def http_put(url, params = {}) http_request do - Gitlab::HTTP.put(url, **request_params.merge(body: params)) + Gitlab::HTTP.put(url, **request_params.merge(body: params.to_json)) end end |