summaryrefslogtreecommitdiff
path: root/config/initializers/0_eager_load_http_cookie.rb
blob: ed633fdb079b8b212a093a3dea31e79f4f672ea9 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# https://gitlab.com/gitlab-org/gitlab/issues/207937
# http-cookie is not thread-safe while loading it the first time, see:
# https://github.com/sparklemotion/http-cookie/issues/6#issuecomment-543570876
# If we're using it, we should eagerly load it.
# For now, we have an implicit dependency on it via:
# * http
# * rest-client
require 'http/cookie_jar/hash_store' if Gem.loaded_specs.key?('http-cookie')