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/gitlab/middleware/compressed_json.rb')
-rw-r--r--lib/gitlab/middleware/compressed_json.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/middleware/compressed_json.rb b/lib/gitlab/middleware/compressed_json.rb
index ef6e0db5673..f66dfe44054 100644
--- a/lib/gitlab/middleware/compressed_json.rb
+++ b/lib/gitlab/middleware/compressed_json.rb
@@ -54,7 +54,8 @@ module Gitlab
end
def match_content_type?(env)
- env['CONTENT_TYPE'] == 'application/json' ||
+ env['CONTENT_TYPE'].nil? ||
+ env['CONTENT_TYPE'] == 'application/json' ||
env['CONTENT_TYPE'] == 'application/x-sentry-envelope'
end