Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ffb76974
Commit
ffb76974
authored
2 years ago
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use follow redirects middleware in the Container Registry clients
Changelog: changed
parent
6b93e111
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config/feature_flags/development/container_registry_follow_redirects_middleware.yml
...opment/container_registry_follow_redirects_middleware.yml
+1
-1
lib/container_registry/client.rb
lib/container_registry/client.rb
+1
-1
No files found.
config/feature_flags/development/container_registry_follow_redirects_middleware.yml
View file @
ffb76974
...
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/353291
milestone
:
'
14.9'
type
:
development
group
:
group::package
default_enabled
:
fals
e
default_enabled
:
tru
e
This diff is collapsed.
Click to expand it.
lib/container_registry/client.rb
View file @
ffb76974
...
...
@@ -152,7 +152,7 @@ module ContainerRegistry
@faraday_blob
||=
faraday_base
do
|
conn
|
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
end
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment