]> git.mxchange.org Git - flightgear.git/commitdiff
httpd: expose /fg-home and /fg-root
authorTorsten Dreyer <torsten@t3r.de>
Wed, 13 Jan 2016 12:25:16 +0000 (13:25 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Wed, 13 Jan 2016 12:25:16 +0000 (13:25 +0100)
src/Network/http/httpd.cxx

index 724596976dc9f70663718728d5a17ddd4fade4b9..358b247d12ca28c6a320f1cc4897a963f5837025 100644 (file)
@@ -491,6 +491,8 @@ void MongooseHttpd::init()
       string rewrites = n->getStringValue("url-rewrites", "");
       string_list rwl = simgear::strutils::split(rewrites, ",");
       rwl.push_back(string("/aircraft-dir/=") + fgGetString("/sim/aircraft-dir") + "/" );
+      rwl.push_back(string("/fg-home/=") + fgGetString("/sim/fg-home") + "/" );
+      rwl.push_back(string("/fg-root/=") + fgGetString("/sim/fg-root") + "/" );
       rewrites.clear();
       for (string_list::iterator it = rwl.begin(); it != rwl.end(); ++it) {
         string_list rw_entries = simgear::strutils::split(*it, "=");