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

StripPrefix handler doesn't work #10

Open
Timmmm opened this issue Dec 17, 2014 · 0 comments
Open

StripPrefix handler doesn't work #10

Timmmm opened this issue Dec 17, 2014 · 0 comments

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Dec 17, 2014

The docs say you can do this:

http.Handle("/introspect", http.StripPrefix("/introspect", boltd.NewHandler(db)))

But it doesn't work since Boltd's / handler redirects to /page - not to /instrospect/page.

To be honest I don't know why you've done it like that rather than just having the contents of the page handler in the index handler. Anyway, a hacky hacky "fix" is to do this instead:

http.Handle("/page", boltd.NewHandler(db))

And then go to /page instead of /introspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant