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:
Diffstat (limited to 'lib/error_tracking/collector/sentry_request_parser.rb')
-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.