refactor: ignore unused variable
Alan Pearce alan@alanpearce.eu
Sat, 13 Jul 2024 16:49:37 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M internal/server/mux.go → internal/server/mux.go
@@ -314,7 +314,7 @@ } mux.HandleFunc("/options/{source}/opensearch.xml", createOpenSearchXMLHandler(config.Options)) mux.HandleFunc("/packages/{source}/opensearch.xml", createOpenSearchXMLHandler(config.Packages)) - mux.HandleFunc("/all/opensearch.xml", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/all/opensearch.xml", func(w http.ResponseWriter, _ *http.Request) { w.Header().Add("Cache-Control", "max-age=604800") w.Header().Set("Content-Type", "application/opensearchdescription+xml") osd := &opensearch.Description{