Project

General

Profile

Revision 64f6a1f2

Added by Dmitri Dolguikh about 8 years ago

Fixes #8393: added support for basic auth for standalone registries

View differences:

app/models/service/registry_api.rb
4 4
    attr_reader :config
5 5

  
6 6
    def initialize(params = {})
7
      @config = DEFAULTS.merge(params)
7
      config = DEFAULTS.merge(params)
8
      uri = URI(config.delete(:url))
9
      uri.user = config.delete(:user)
10
      uri.password = config.delete(:password)
11
      @config = config.merge(:url => uri.to_s)
8 12
    end
9 13

  
10 14
    def search(aquery)

Also available in: Unified diff