From 86be72b30a5a9f8ea4fc6997df7b041660a4c241 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sun, 10 May 2015 23:06:18 -0700 Subject: [PATCH] query_handler: specify matchType exact for all queries, in case url ends in * --- pywb/webapp/query_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pywb/webapp/query_handler.py b/pywb/webapp/query_handler.py index 667dbb55..7184cd10 100644 --- a/pywb/webapp/query_handler.py +++ b/pywb/webapp/query_handler.py @@ -131,6 +131,7 @@ class QueryHandler(object): 'filter': ['!statuscode:(500|502|504)'], 'query_closest': wburl.timestamp, 'limit': limit, + 'matchType': 'exact', }, wburl.URL_QUERY: @@ -151,6 +152,7 @@ class QueryHandler(object): 'limit': replay_closest, 'closest': wburl.timestamp, 'resolveRevisits': True, + 'matchType': 'exact', }, wburl.LATEST_REPLAY: @@ -161,6 +163,7 @@ class QueryHandler(object): 'filter': [], 'limit': '1', 'resolveRevisits': True, + 'matchType': 'exact', } }[wburl.type]