From a8241cef31a46266df2ae114fa6c44b69f6d4097 Mon Sep 17 00:00:00 2001 From: Daanyaal Syed Date: Sat, 6 Jan 2018 19:06:54 -0800 Subject: [PATCH] Fix search route conflict (Issue #3) --- devpi_semantic_ui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devpi_semantic_ui/__init__.py b/devpi_semantic_ui/__init__.py index b4c35e6..92a19ed 100644 --- a/devpi_semantic_ui/__init__.py +++ b/devpi_semantic_ui/__init__.py @@ -18,5 +18,5 @@ def devpiserver_pyramid_configure(config, pyramid_config): def includeme(config): - config.add_route('searchapi', '/+search', accept='application/json') + config.add_route('searchapi', '/+search', header='Accept:application/json') config.scan()