scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.72k stars 134 forks source link

Fix: avoid matching capture pattern name ( Fixes #291) #301

Closed jfraudeau closed 8 months ago

jfraudeau commented 11 months ago

As stated in the issue #291, GET /test/:capture would match a capture defined as get "/test/:capture" _handler with the capture absent from params.

With this fix the param would be set to literally ":capture

ocramz commented 11 months ago

Thank you @jfraudeau ! Could you please add a test for this as well?

jfraudeau commented 11 months ago

Test added @ocramz thanks for your time

ocramz commented 8 months ago

Oh and please fix the conflict in the test files. Thanks again!

jfraudeau commented 8 months ago

All done, I hope the changelog entry is clear enough