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

update to latest wombat (3.1.6), includes more consist post-to-get handling on client-side to match server side handling

fuzzymatcher: ensure fuzzy match enabled for non-get requests
This commit is contained in:
Ilya Kreymer 2021-05-17 23:00:57 -07:00
parent 551b8fe026
commit 818b518765
3 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -209,6 +209,10 @@ class FuzzyMatcher(object):
if mime and mime in self.default_filters['mimes']:
check_query = True
# also check query if has method (non-GET request) or requestBody is set
elif cdx.get('requestBody') or cdx.get('method'):
check_query = True
# if check_query, ensure matched url starts with original prefix, only differs by query
if check_query:
if cdx['url'] == url_no_query or cdx['url'].startswith(url_no_query + '?'):

2
wombat

@ -1 +1 @@
Subproject commit 1e1cfc399fc194f04651416f89805090f2068948
Subproject commit 14c167613648c8a1679e6c31e2ebd5284ef94c81