Project

General

Profile

Revision c69bcf98

Added by Sebastian Gräßl about 5 years ago

Fixes #20355 - Request registry results in JSON

View differences:

app/models/service/registry_api.rb
1 1
module Service
2 2
  class RegistryApi
3
    DOCKER_HUB = 'https://registry.hub.docker.com/'.freeze
3
    DOCKER_HUB = 'https://index.docker.io/'.freeze
4 4
    DEFAULTS = {
5 5
      url: 'http://localhost:5000'.freeze,
6
      connection: { omit_default_port: true }
6
      connection: { omit_default_port: true,
7
                    headers: { "Content-Type" => "application/json" }}
7 8
    }
8 9

  
9 10
    attr_accessor :config, :url

Also available in: Unified diff