Commit ffb76974 authored by David Fernandez's avatar David Fernandez

Use follow redirects middleware in the Container Registry clients

Changelog: changed
parent 6b93e111
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/353291 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/353291
milestone: '14.9' milestone: '14.9'
type: development type: development
group: group::package group: group::package
default_enabled: false default_enabled: true
...@@ -152,7 +152,7 @@ module ContainerRegistry ...@@ -152,7 +152,7 @@ module ContainerRegistry
@faraday_blob ||= faraday_base do |conn| @faraday_blob ||= faraday_base do |conn|
initialize_connection(conn, @options) initialize_connection(conn, @options)
if Feature.enabled?(:container_registry_follow_redirects_middleware) if Feature.enabled?(:container_registry_follow_redirects_middleware, default_enabled: :yaml)
conn.use ::FaradayMiddleware::FollowRedirects, REDIRECT_OPTIONS conn.use ::FaradayMiddleware::FollowRedirects, REDIRECT_OPTIONS
end end
end end
......
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