1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

query_handler: specify matchType exact for all queries, in case url ends in *

This commit is contained in:
Ilya Kreymer 2015-05-10 23:06:18 -07:00
parent b2e26eeb27
commit 86be72b30a

View File

@ -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]