Skip to content
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

Routing: wildcard route handler couldn't fallback to root #53

Closed
cy6erGn0m opened this issue Nov 23, 2016 · 0 comments
Closed

Routing: wildcard route handler couldn't fallback to root #53

cy6erGn0m opened this issue Nov 23, 2016 · 0 comments
Assignees
Labels

Comments

@cy6erGn0m
Copy link
Contributor

install(Routing) {
        get("/") {
            call.respondText("Hello, World!")
        }
        get("/{...}") {
            if (call.request.uri != "/") {
                call.respond(call.request.uri)
            }
        }
    }

Request to / results 404 Not found instead of 200 OK with "Hello, World!" content

 curl 'http://localhost:8080/aa' 
/aa
 curl 'http://localhost:8080/'   
<H1>404 Not Found</H1>Not found: /
@cy6erGn0m cy6erGn0m added the bug label Nov 23, 2016
@cy6erGn0m cy6erGn0m changed the title Routing wildcard vs root Routing: wildcard route handler couldn't fallback to root Nov 23, 2016
@orangy orangy self-assigned this Dec 6, 2016
@orangy orangy closed this as completed in 76ee1ee Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants