httprouter
httprouter copied to clipboard
favicon.ico in Params
Why is favicon.ico passed to Params if your url template is f.e. /:id?
because * and :arg is a wildcard-like pattern; but instead assigned the value in arg;
maybe you need to consider the pattern? like /user/:id?
when no favicon registered in html, browser will automatically get from /favicon.ico
so yeah, you get 2 incoming connection from browser the actual path + favicon path
I think, favicon.ico should be ignored if the path is /:id. I leave this issue opened. In the case it is not a bug any maintainer can close this thread