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
Reproduction:
const app = uWS.App({}) app.get( "/*", ( res, req ) => { res.writeStatus( "404 Not Found" ); res.end() }) app.get( "/route", ( res, req ) => { res.writeStatus( "200 OK" ); res.end() }) app.get( "/route/:id", ( res, req ) => { res.writeStatus( "200 Zombie" ); res.end() }) app.get( "/route", null ) // Correctly removed. app.get( "/route/:id", null ) // NOT removed. app.listen( 8888, async ( listenSocket ) => { if ( listenSocket ) { let method = "GET" let cases = [ `http://localhost:8888/route`, `http://localhost:8888/route/23` ] for ( const url of cases ) { const { status, statusText } = await fetch( url ) console.log( `GET ${url} -> ${status} ${statusText}` ) } process.exit() } })
Tested on macOS using latest uWS (v20.51.0). With v20.49.0 was also not working.
The text was updated successfully, but these errors were encountered:
I will add this case to the tests
Sorry, something went wrong.
No branches or pull requests
Reproduction:
Tested on macOS using latest uWS (v20.51.0). With v20.49.0 was also not working.
The text was updated successfully, but these errors were encountered: