gitlab-org--gitlab-foss/lib
Rémy Coutable 2556d6d347 Merge branch 'docker-registry-work-with-redirect' into 'master'
Make docker registry work with location redirects when external storage is used

## What does this MR do?

Honor `Location:` header when working with local registry.
Location makes it possible to download manifests from external storage.

## What are the relevant issue numbers?

Fixed https://gitlab.com/gitlab-org/gitlab-ce/issues/18477

## Remark

Adding `FollowRedirects` makes that we leak `Authorization:` in followed requests.

That is why it is implemented manually and we are explicitly removing `Authorization` header.

cc @marin @twk3 

See merge request !4677
2016-07-18 10:32:39 +00:00
..
api Merge branch 'api-isssues-due-date' into 'master' 2016-07-18 08:51:24 +00:00
assets
backup Refactor repository paths handling to allow multiple git mount points 2016-06-29 22:30:31 -04:00
banzai Merge branch 'syntax-highlight-unknown-language' into 'master' 2016-07-16 01:56:05 +00:00
ci Merge branch 'refactor/ci-config-move-global-entries' into 'master' 2016-07-05 08:37:16 +00:00
container_registry Make rubocop happy 2016-07-15 18:05:39 +02:00
gitlab allow empty repos on import/export 2016-07-18 11:02:07 +02:00
json_web_token
omni_auth
rouge/formatters use %(...) and %[...] in favor of %<...> 2016-07-14 22:43:49 -07:00
support Defend against 'Host' header injection 2016-07-12 19:50:20 +02:00
tasks Merge branch 'update-gemoji' into 'master' 2016-07-05 17:08:35 +00:00
banzai.rb Object renderer read_multi rendered entries from Cache 2016-07-12 14:35:29 +02:00
disable_email_interceptor.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
event_filter.rb
extracts_path.rb
file_size_validator.rb
file_streamer.rb
gitlab.rb Update Gitlab.com? to support staging 2016-06-27 15:10:36 -04:00
gt_one_coercion.rb
repository_cache.rb
static_model.rb
unfold_form.rb
uploaded_file.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
version_check.rb