Currently in my mux app:
app := mux.NewRouter()
app.HandleFunc("/", handleIndex).Methods("GET")
app.HandleFunc("/closest", handleClosest).Methods("GET")
app.HandleFunc("/icon", handleIcon).Methods("GET")
It fails for HEAD requests:
HTTP/2 405
I notice these in my logs & they are from health checkers/pingers.
How should I implement it? Hopefully this is not too silly a question.
Thank you in advance,