mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
query_handler: specify matchType exact for all queries, in case url ends in *
This commit is contained in:
parent
b2e26eeb27
commit
86be72b30a
@ -131,6 +131,7 @@ class QueryHandler(object):
|
|||||||
'filter': ['!statuscode:(500|502|504)'],
|
'filter': ['!statuscode:(500|502|504)'],
|
||||||
'query_closest': wburl.timestamp,
|
'query_closest': wburl.timestamp,
|
||||||
'limit': limit,
|
'limit': limit,
|
||||||
|
'matchType': 'exact',
|
||||||
},
|
},
|
||||||
|
|
||||||
wburl.URL_QUERY:
|
wburl.URL_QUERY:
|
||||||
@ -151,6 +152,7 @@ class QueryHandler(object):
|
|||||||
'limit': replay_closest,
|
'limit': replay_closest,
|
||||||
'closest': wburl.timestamp,
|
'closest': wburl.timestamp,
|
||||||
'resolveRevisits': True,
|
'resolveRevisits': True,
|
||||||
|
'matchType': 'exact',
|
||||||
},
|
},
|
||||||
|
|
||||||
wburl.LATEST_REPLAY:
|
wburl.LATEST_REPLAY:
|
||||||
@ -161,6 +163,7 @@ class QueryHandler(object):
|
|||||||
'filter': [],
|
'filter': [],
|
||||||
'limit': '1',
|
'limit': '1',
|
||||||
'resolveRevisits': True,
|
'resolveRevisits': True,
|
||||||
|
'matchType': 'exact',
|
||||||
}
|
}
|
||||||
|
|
||||||
}[wburl.type]
|
}[wburl.type]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user