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

possible parsing issue #37

Open
leifj opened this issue Dec 1, 2020 · 0 comments
Open

possible parsing issue #37

leifj opened this issue Dec 1, 2020 · 0 comments

Comments

@leifj
Copy link

leifj commented Dec 1, 2020

I am trying to deploy swagger below the basePath so that the swagger handler owns example.com/foo/swagger rather than example.com/swagger

When I open example.com/foo/swagger/index.html in the browser everything works as expected but example.com/foo/swagger/ redirects to example.com/swagger/index.html rather than to example.com/foo/swagger/index.html

http-swagger parses the request URL over here:

var re = regexp.MustCompile(`^(.*/)([^?].*)?[?|.]*$`)

I suspect something is wrong with that regexp. I dunno if it is obvious what is going wrong from my description but I'll try to investigate further and provide a PR if that helps.

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