From f385e999d67b2949b3cfad5030455e1029b8da31 Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Sun, 28 Jul 2019 13:53:33 -0500 Subject: [PATCH] Lowercase query match string for process_handler Add logic to lowercase the query text or match string for the process_handler to make its behavior consistent with the API search_handler so that a frontend can point at either search URL and observe the same case behavior. --- src/pyff/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyff/api.py b/src/pyff/api.py index c264e4b0..ddaf8094 100644 --- a/src/pyff/api.py +++ b/src/pyff/api.py @@ -144,7 +144,7 @@ def _d(x, do_split=True): 'accept': accepter, 'url': request.current_route_url(), 'select': q, - 'match': match, + 'match': match.lower() if match else match, 'path': path, 'stats': {}}