Skip to content

Commit 039cd4a

Browse files
committed
Fix dispatcher non-posix-fs bug
1 parent 9637ecb commit 039cd4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aspen/dispatcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import mimetypes
1313
import os
14+
import posixpath
1415

1516
from . import Response
1617
from .backcompat import namedtuple
@@ -120,7 +121,7 @@ def get_wildleaf_fallback():
120121
wild_nonleaf_ns = [ n for n in maybe_wild_nodes if not is_leaf_node(n) ]
121122

122123
# store all the fallback possibilities
123-
remaining = reduce(traverse, nodepath[depth:])
124+
remaining = reduce(posixpath.join, nodepath[depth:])
124125
for n in wild_leaf_ns:
125126
wildwildvals = wildvals.copy()
126127
k, v = strip_matching_ext(n[1:-4], remaining)

0 commit comments

Comments
 (0)