From 714639428c2094d27f3eb5f59612dd9073156b49 Mon Sep 17 00:00:00 2001 From: Alex Aperis Date: Fri, 21 Apr 2023 07:37:55 +0200 Subject: [PATCH] remove excessive debug logging --- proxy.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/proxy.go b/proxy.go index 2036c41..83f1620 100644 --- a/proxy.go +++ b/proxy.go @@ -87,11 +87,6 @@ func (p *Proxy) notAllowedResponse(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusForbidden) } -func (p *Proxy) notAcceptableResponse(w http.ResponseWriter, _ *http.Request) { - log.Debug("not acceptable response") - w.WriteHeader(http.StatusNotAcceptable) -} - func (p *Proxy) notAuthorized(w http.ResponseWriter, _ *http.Request) { log.Debug("not authorized") w.WriteHeader(http.StatusUnauthorized) @@ -115,7 +110,7 @@ func (p *Proxy) allowedResponse(w http.ResponseWriter, r *http.Request) { filepath, err := helper.FormatUploadFilePath(rawFilepath) if err != nil { log.Debugf(err.Error()) - p.notAcceptableResponse(w, r) + w.WriteHeader(http.StatusNotAcceptable) return }