You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Static route conflict with dynamic on same level #623
When I call /dictionary/skills or /dictionary/type it work as expected, but when I call /dictionary/status router returns 404. I believe this is because matching work only on first letter for speed sake. When I remove /dictionary/skills route /dictionary/status work normal.
I think this is wrong behaviour, because I want to have common handler on all /dictionary/:name but for exception add only /dictionary/skills.
Reacted by Bahtiyar Biksayev, Roman Potekhin and Alexey Palazhchenko
Please check this exmaple. For me http://localhost:8001/g/dictionary/status return Not Found but http://localhost:8001/g/dictionary/type return type. If remove g.GET("/server", than status request work as expected.
Activity
ipfans commentedon Aug 16, 2016
I think it should be some behaviour due to your code. As example:
Routers are working fine.
sokolovstas commentedon Aug 16, 2016
Yes your example work as expected! Thank you for it. I will try figure out source of problem and write later.
sokolovstas commentedon Sep 23, 2016
Please check this exmaple. For me
http://localhost:8001/g/dictionary/statusreturnNot Foundbuthttp://localhost:8001/g/dictionary/typereturntype. If removeg.GET("/server",thanstatusrequest work as expected.sokolovstas commentedon Oct 14, 2016
Hi @vishr, do you have any thought about this error?
vishr commentedon Oct 14, 2016
@sokolovstas I believe this issue is related to #675. I will work on it asap.
vishr commentedon Oct 14, 2016
@sokolovstas please verify
fixed #623
fixed #623
sokolovstas commentedon Oct 19, 2016
Yes it working fine now! Many thanks for your efforts!
backport fix for #623 from v3 (#709)