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
Hi,... had a problem where the 'apisearch' route conflicts with the 'search' route from devpi_web.
My browser sends an Accept header that includes '/', and the /+search route from semantic ui matches that before the /+search route from devpi_web.
workaround is to use a header predicate instead of an accept predicate in this package:
i.e.: replace in devpi_semantic_ui/init.py:17
config.add_route('searchapi', '/+search', accept='application/json')
with:
config.add_route('searchapi', '/+search', header='Accept:application/json')
It would be better if there was a way to control include order form within devpi-server, but I was not able to find an easy way.
cheers
The text was updated successfully, but these errors were encountered:
Fix search route conflict (Issue apihackers#3)
a8241ce
No branches or pull requests
Hi,... had a problem where the 'apisearch' route conflicts with the 'search' route from devpi_web.
My browser sends an Accept header that includes '/', and the /+search route from semantic ui matches that before the /+search route from devpi_web.
workaround is to use a header predicate instead of an accept predicate in this package:
i.e.: replace in devpi_semantic_ui/init.py:17
config.add_route('searchapi', '/+search', accept='application/json')
with:
config.add_route('searchapi', '/+search', header='Accept:application/json')
It would be better if there was a way to control include order form within devpi-server, but I was not able to find an easy way.
cheers
The text was updated successfully, but these errors were encountered: