Down in the wsserver.js code, made these changes:

  var filepath = request.headers['x-file-path'];
console.log("Before I see " + filepath) ; // MAS
if (typeof filepath !== 'undefined') filepath=filepath.replace(
/^\/[A-Za-z]:/,"") ;
console.log("Now I see " + filepath) ; // MAS

          const key = request.headers['x-saver-key'];

It appears that "createSaverServer" gets called twice for every invocation. 
On one of the passes filepath is undefined. So that's why there's 
a check for undefined.

After these changes, it works with windows pathing. It shouldn't upset 
anything in un*x pathing, but I didn't test.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5d8a8814-b339-426e-9953-56aea7761894%40googlegroups.com.

Reply via email to