diff options
author | Alan Pearce | 2024-07-13 16:49:37 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-13 16:49:37 +0200 |
commit | c4f8adb01ae4f74ed648ac0d58d423857c4d168a (patch) | |
tree | ed4628a3b41c41e73c69ba2377ed749ad8065fba /internal/server/mux.go | |
parent | 56f1c5d386db3f19b4d5c645ece83a25d9a58759 (diff) | |
download | searchix-c4f8adb01ae4f74ed648ac0d58d423857c4d168a.tar.lz searchix-c4f8adb01ae4f74ed648ac0d58d423857c4d168a.tar.zst searchix-c4f8adb01ae4f74ed648ac0d58d423857c4d168a.zip |
refactor: ignore unused variable
Diffstat (limited to 'internal/server/mux.go')
-rw-r--r-- | internal/server/mux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/mux.go b/internal/server/mux.go index e869e14..66da7b5 100644 --- a/internal/server/mux.go +++ b/internal/server/mux.go @@ -314,7 +314,7 @@ func NewMux( 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{ |