Skip to content

Commit

Permalink
pathresolver wildcard resolve: windows fix: ensure path sep converted…
Browse files Browse the repository at this point in the history
… to '/' before

removing path remainder
  • Loading branch information
ikreymer committed Sep 30, 2017
1 parent 924b983 commit 17bf1db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pywb/warcserver/resource/pathresolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def resolve_coll(self, path, source):
if not source:
return

if os.path.sep != '/':
source = source.replace(os.path.sep, '/')

coll = source.split('/', 1)[0]
return path.replace('*', coll)

Expand Down

0 comments on commit 17bf1db

Please sign in to comment.