feature/11-update_master_to_beta_release_commits #12

Merged
alexvanin merged 185 commits from r.loginov/distribution:feature/11-update_master_to_beta_release_commits into tcl/master 2024-08-19 12:13:20 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 2fe3442035 - Show all commits

View file

@ -202,7 +202,7 @@ func (ub *URLBuilder) BuildBlobUploadChunkURL(name reference.Named, uuid string,
return appendValuesURL(uploadURL, values...).String(), nil return appendValuesURL(uploadURL, values...).String(), nil
} }
// clondedRoute returns a clone of the named route from the router. Routes // cloneRoute returns a clone of the named route from the router. Routes
// must be cloned to avoid modifying them during url generation. // must be cloned to avoid modifying them during url generation.
func (ub *URLBuilder) cloneRoute(name string) clonedRoute { func (ub *URLBuilder) cloneRoute(name string) clonedRoute {
route := new(mux.Route) route := new(mux.Route)

View file

@ -46,7 +46,7 @@ var (
) )
// InitFunc is the type of an AccessController factory function and is used // InitFunc is the type of an AccessController factory function and is used
// to register the constructor for different AccesController backends. // to register the constructor for different AccessController backends.
type InitFunc func(options map[string]interface{}) (AccessController, error) type InitFunc func(options map[string]interface{}) (AccessController, error)
var accessControllers map[string]InitFunc var accessControllers map[string]InitFunc

View file

@ -127,7 +127,7 @@ func (ac authChallenge) challengeParams(r *http.Request) string {
return str return str
} }
// SetChallenge sets the WWW-Authenticate value for the response. // SetHeaders sets the WWW-Authenticate value for the response.
func (ac authChallenge) SetHeaders(r *http.Request, w http.ResponseWriter) { func (ac authChallenge) SetHeaders(r *http.Request, w http.ResponseWriter) {
w.Header().Add("WWW-Authenticate", ac.challengeParams(r)) w.Header().Add("WWW-Authenticate", ac.challengeParams(r))
} }