-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
I would expect *
in a route to match any string, including the empty string. It doesn't, though:
package main
import (
"fmt"
"github.com/labstack/echo"
)
func okay(context *echo.Context) {
context.String(200, "")
}
func main() {
e := echo.New()
e.Post("members*", okay)
handler, ech := e.Router.Find("POST", "members", nil)
fmt.Printf("%+v %+v\n", handler, ech)
}
Prints <nil>, <nil>
.