Loading internal/backend.go +3 −10 Original line number Diff line number Diff line Loading @@ -200,11 +200,6 @@ func (b *BackendContext) isAuthenticated(w http.ResponseWriter, r *http.Request) } func (b *BackendContext) getResourceStreamHandler(w http.ResponseWriter, r *http.Request) { if !b.isAuthenticated(w, r) { return } req, err := extractResourceRequest(w, r) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) Loading Loading @@ -349,11 +344,6 @@ func (b *BackendContext) processResourceRequest(req *core.ResourceRequest) core. } func (b *BackendContext) getResourcesHandler(w http.ResponseWriter, r *http.Request) { if !b.isAuthenticated(w, r) { return } req, err := extractResourceRequest(w, r) if err != nil { return Loading Loading @@ -455,6 +445,9 @@ func (b *BackendContext) postResourcesHandler(w http.ResponseWriter, req *http.R // resourcesHandler handles requests coming from distributors (if it's GET // requests) and from proxies (if it's POST requests). func (b *BackendContext) resourcesHandler(w http.ResponseWriter, r *http.Request) { if !b.isAuthenticated(w, r) { return } switch r.Method { case http.MethodGet: Loading Loading
internal/backend.go +3 −10 Original line number Diff line number Diff line Loading @@ -200,11 +200,6 @@ func (b *BackendContext) isAuthenticated(w http.ResponseWriter, r *http.Request) } func (b *BackendContext) getResourceStreamHandler(w http.ResponseWriter, r *http.Request) { if !b.isAuthenticated(w, r) { return } req, err := extractResourceRequest(w, r) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) Loading Loading @@ -349,11 +344,6 @@ func (b *BackendContext) processResourceRequest(req *core.ResourceRequest) core. } func (b *BackendContext) getResourcesHandler(w http.ResponseWriter, r *http.Request) { if !b.isAuthenticated(w, r) { return } req, err := extractResourceRequest(w, r) if err != nil { return Loading Loading @@ -455,6 +445,9 @@ func (b *BackendContext) postResourcesHandler(w http.ResponseWriter, req *http.R // resourcesHandler handles requests coming from distributors (if it's GET // requests) and from proxies (if it's POST requests). func (b *BackendContext) resourcesHandler(w http.ResponseWriter, r *http.Request) { if !b.isAuthenticated(w, r) { return } switch r.Method { case http.MethodGet: Loading