-
- Downloads
There was a problem fetching the pipeline summary.
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
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- lib/container_registry/client.rb 49 additions, 20 deletionslib/container_registry/client.rb
- lib/container_registry/tag.rb 1 addition, 1 deletionlib/container_registry/tag.rb
- spec/lib/container_registry/blob_spec.rb 51 additions, 1 deletionspec/lib/container_registry/blob_spec.rb
- spec/lib/container_registry/tag_spec.rb 36 additions, 13 deletionsspec/lib/container_registry/tag_spec.rb
Loading