Commit f9141d52 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '207937-eager-load-http-cookie' into 'master'

Eager load http-cookie to avoid thread-safety bug

Closes #207937

See merge request gitlab-org/gitlab!25874
parents becfc8bc 9f4d8402
# 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')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment