Open seinokatsuhiro opened 6 years ago
I'm not quite sure what the right solution is here. My default assumption would be that using getSafePath
is the right thing and that the problem lies somewhere else. We do want to support Windows, but I don't have a Windows machine and don't know anyone else who does, so I'm going to need more help to get this issue fixed. A fully self contained repo or gist that reproduces the problem would help, and once we get to a solution I'll need help from you testing it.
On Windows, when Heist templates are in directories like
templates\a\b.tpl
, I got a responseSnap.Snaplet.HeistNoClass.serveURI
creates\
-joined paths (on Windows) usinggetSafePath
. It seems these paths are not matched with template paths. ShouldserveURI
return/
-joined paths?(I run the snapframwork with Windows 10, LTS Haskell 11.10, snap-1.1.0.0, snap-core-1.0.3.2 and heist-1.0.1.2.)