code: def get_config_entry(config, url):
      
      if not config:
          return None
  
      # First, try to search for the best match
      if url in config:
          return config[url]
  
      # Then search for indirect match
      for item in config:
          if without_http_prefix(item) == without_http_prefix(url):
              return config[item]
docs: Look through config and try to find best matching entry for 'url'
  
      config - result of read_config() or read_global_config()
      url - artifactory url to search the config for