Fix servefile -l ../ #2

Closed
joker wants to merge 1 commits from joker/servefile:targetdir_abspath into master

1 Commits

Author SHA1 Message Date
MasterofJOKers 5680f23bc9 Make `targetDir` absolute by default
When serving a `../` as directory (with `-l`), servefile creates an
endless 301-redirect loop. Having an absolute path fixes this. Since
this error might come up any time again, we're setting `targetDir` to
its absolute path right from the beginning and never have to worry about
it later on.
2019-02-24 15:59:46 +01:00