httprouter icon indicating copy to clipboard operation
httprouter copied to clipboard

favicon.ico in Params

Open yshym opened this issue 5 years ago • 2 comments

Why is favicon.ico passed to Params if your url template is f.e. /:id?

yshym avatar Aug 18 '20 19:08 yshym

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

gunawanwijaya avatar Oct 10 '20 12:10 gunawanwijaya

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

yshym avatar Oct 12 '20 14:10 yshym