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

pathresolver wildcard resolve: windows fix: ensure path sep converted to '/' before

removing path remainder
This commit is contained in:
Ilya Kreymer 2017-09-29 18:06:05 -07:00
parent 924b983a8f
commit 17bf1db109

View File

@ -58,6 +58,9 @@ class PrefixResolver(object):
if not source:
return
if os.path.sep != '/':
source = source.replace(os.path.sep, '/')
coll = source.split('/', 1)[0]
return path.replace('*', coll)