-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
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
Dynamic Route Not Matching Expected URL Patterns /sitemap_*.xml or /sitemap_:id.xml #210
Comments
From the docs:
Can you give some reproducible example? How are your routes setup? |
I use this |
this need to be the last one:
|
simple setup from socketify import App, AppOptions
def make_app(app:App):
app.get("/sitemap_*", lambda res, req: res.end("Hello World socketify from Python!"))
if __name__ == "__main__":
app = App()
make_app(app)
app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port))
app.run() GET /sitemap_* => Response |
Looks like uWS only support exactly matching "*" and not partial like An workaround would be |
The current route definition
app.get("/sitemap_*", sitemaps)
isn't catching requests like/sitemap_823.xml
. This happens because the asterisk (*) in the route isn't a proper match for such patterns.The text was updated successfully, but these errors were encountered: