planety / prologue

Powerful and flexible web framework written in Nim
https://planety.github.io/prologue
Apache License 2.0
1.23k stars 47 forks source link

Fixed unexpected behavior when double leading slash on route #212

Closed Mr-Thack closed 1 year ago

Mr-Thack commented 1 year ago

Hello,

Prologue doesn't accept //a/b/c nor warns about it being invalid. So, this rewrite trims all the slashes on the ends, and then adds one onto the front. It also seems to pass all the tests from nimble tests.

Thank you!

ringabout commented 1 year ago

Good job!

ringabout commented 1 year ago

A test will be appreciated.