Skip to content

route conflict with devpi_web #3

@gweis

Description

@gweis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions