Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-16 03:08:32 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-16 03:08:32 +0300
commitb0f27742e78a4aa4208c271536b6b9d84c53b49e (patch)
treebe4664298b0a70efd233e23751aab518ad3e1f4e /lib/sentry/client.rb
parent600ca978129e3ccab758f57d60786cefe66ad775 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry/client.rb')
-rw-r--r--lib/sentry/client.rb3
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