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

route conflict with devpi_web #3

Open
gweis opened this issue Mar 17, 2017 · 0 comments
Open

route conflict with devpi_web #3

gweis opened this issue Mar 17, 2017 · 0 comments

Comments

@gweis
Copy link

gweis commented Mar 17, 2017

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

dsyed added a commit to dsyed/devpi-semantic-ui that referenced this issue Jan 7, 2018
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