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
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-08-08 16:44:05 +0300
committerSean McGivern <sean@mcgivern.me.uk>2017-08-08 16:44:05 +0300
commitfafd6a0a0a4da1d99e2233c79bce3baf24447236 (patch)
tree3a6608e66417ad6cd8c4b622d6c980bd0b9c9acc /lib
parent5b08d59f07fc53c1e34819fac20352119d5343e6 (diff)
parent75096f958c7604be40ec7b766ce42e27978c466a (diff)
Merge branch '35098-raise-encoding-confidence-threshold' into 'master'
Raise encoding confidence threshold to 50 Closes #35098 See merge request !12990
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/encoding_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/encoding_helper.rb b/lib/gitlab/encoding_helper.rb
index 781f9c56a42..8ddc91e341d 100644
--- a/lib/gitlab/encoding_helper.rb
+++ b/lib/gitlab/encoding_helper.rb
@@ -11,7 +11,7 @@ module Gitlab
# obscure encoding with low confidence.
# There is a lot more info with this merge request:
# https://gitlab.com/gitlab-org/gitlab_git/merge_requests/77#note_4754193
- ENCODING_CONFIDENCE_THRESHOLD = 40
+ ENCODING_CONFIDENCE_THRESHOLD = 50
def encode!(message)
return nil unless message.respond_to? :force_encoding