mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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:
|
if not source:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if os.path.sep != '/':
|
||||||
|
source = source.replace(os.path.sep, '/')
|
||||||
|
|
||||||
coll = source.split('/', 1)[0]
|
coll = source.split('/', 1)[0]
|
||||||
return path.replace('*', coll)
|
return path.replace('*', coll)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user