httpd: expose the aircraft dir to the web server
add a (currently) hard coded url rewrite to access the currently used aircraft by http://localhost:8080/aircraft-dir/
This commit is contained in:
parent
48180eb9ab
commit
b50b1a778b
1 changed files with 1 additions and 0 deletions
|
@ -478,6 +478,7 @@ void MongooseHttpd::init()
|
||||||
// build url rewrites relative to fg-root
|
// build url rewrites relative to fg-root
|
||||||
string rewrites = n->getStringValue("url-rewrites", "");
|
string rewrites = n->getStringValue("url-rewrites", "");
|
||||||
string_list rwl = simgear::strutils::split(rewrites, ",");
|
string_list rwl = simgear::strutils::split(rewrites, ",");
|
||||||
|
rwl.push_back(string("/aircraft-dir/=") + fgGetString("/sim/aircraft-dir") + "/" );
|
||||||
rewrites.clear();
|
rewrites.clear();
|
||||||
for (string_list::iterator it = rwl.begin(); it != rwl.end(); ++it) {
|
for (string_list::iterator it = rwl.begin(); it != rwl.end(); ++it) {
|
||||||
string_list rw_entries = simgear::strutils::split(*it, "=");
|
string_list rw_entries = simgear::strutils::split(*it, "=");
|
||||||
|
|
Loading…
Reference in a new issue