~alanpearce/searchix

c4f8adb01ae4f74ed648ac0d58d423857c4d168a — Alan Pearce 4 months ago 56f1c5d
refactor: ignore unused variable
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/server/mux.go
M internal/server/mux.go => internal/server/mux.go +1 -1
@@ 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{