We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "fmt" "log" "github.com/fasthttp/router" "github.com/valyala/fasthttp" ) func Index(ctx *fasthttp.RequestCtx) { ctx.WriteString("Welcome!") } func Hello(ctx *fasthttp.RequestCtx) { fmt.Fprintf(ctx, "Hello, %s!\n", ctx.UserValue("name")) } func main() { r := router.New() r.GET("/hello/test", Index) r.GET("/hello/{name}", Hello) fmt.Println("starting") log.Fatal(fasthttp.ListenAndServe(":8080", r.Handler)) }
GET: /hello/test returns "Welcome!" GET: /hello/test1 hangs indefinitely GET: /hello/tes returns "Hello, tes!"
The text was updated successfully, but these errors were encountered:
Hi @ImVexed,
Thanks for your issue. I will fix it as soon as possible.
Sorry, something went wrong.
Fix mixing static + wildcard segment causes hung request #37
b310583
Fixed!! 🎉
The bugfix is available in the new release v1.2.4.
No branches or pull requests
GET: /hello/test returns "Welcome!"
GET: /hello/test1 hangs indefinitely
GET: /hello/tes returns "Hello, tes!"
The text was updated successfully, but these errors were encountered: