summaryrefslogtreecommitdiff
path: root/lib/error_tracking
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-01 12:11:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-01 12:11:46 +0000
commit41876b483a9973c70657941b8d3217a327c1b58a (patch)
tree2e282cabe09bda93a6a38e807a0744169b25720a /lib/error_tracking
parenta67852da7f1243becda660d7619e3f5ccc68c1e1 (diff)
downloadgitlab-ce-41876b483a9973c70657941b8d3217a327c1b58a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/error_tracking')
-rw-r--r--lib/error_tracking/collector/sentry_request_parser.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/error_tracking/collector/sentry_request_parser.rb b/lib/error_tracking/collector/sentry_request_parser.rb
index 29e4cc8976f..ae632ebd518 100644
--- a/lib/error_tracking/collector/sentry_request_parser.rb
+++ b/lib/error_tracking/collector/sentry_request_parser.rb
@@ -4,15 +4,7 @@ module ErrorTracking
module Collector
class SentryRequestParser
def self.parse(request)
- # Request body can be "" or "gzip".
- # If later then body was compressed with Zlib.gzip
- encoding = request.headers['Content-Encoding']
-
- body = if encoding == 'gzip'
- Zlib.gunzip(request.body.read)
- else
- request.body.read
- end
+ body = request.body.read
# Request body contains 3 json objects merged together in one StringIO.
# We need to separate and parse them into array of hash objects.