Skip to content
Snippets Groups Projects
Unverified Commit a6e7d2ed authored by Nedyalko Andreev's avatar Nedyalko Andreev
Browse files

Reorder middlewares so logger sees HEAD requests

parent af81d0c5
Branches
Tags
No related merge requests found
......@@ -174,8 +174,8 @@ func (h *HTTPBin) Handler() http.Handler {
var handler http.Handler
handler = mux
handler = limitRequestSize(h.options.MaxMemory, handler)
handler = logger(handler)
handler = optionsAndHead(handler)
handler = logger(handler)
handler = cors(handler)
return handler
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment