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:
parent
924b983a8f
commit
17bf1db109
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user