I was strangling the whole day to understand what I changed in my code and when I chain a middle-ware at the Gorilla/mux then it is called twice per request instead of once.