Re: [go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-12 Thread Péter Szarvas
7;t played around with it yet, but have you tried to separately > register /something/ ? > >> > >> mux := http.NewServeMux() > >> mux.HandleFunc("/something/", func...) > >> mux.HandleFunc("/something/{id}/{$}", func...) > >> > >> On We

[go-nuts] 1.22.0 ServeMux HandleFunc infinite loop

2024-02-07 Thread Péter Szarvas
Hello, I noticed if you set up a route like /something/{id}/{$}, it results in an infinite loop if I navigate to /someting/ (with the trailing slash). I got a redirect to Location: /something/, and so on. Finally the page breaks after multiple rounds. Example: mux := http.NewServeMux() mux.Han