From 6f09b9e31e556d6e33661e28c6a37c3d0ab0f2b3 Mon Sep 17 00:00:00 2001
From: Torsten Dreyer <torsten@t3r.de>
Date: Wed, 13 Jan 2016 13:25:16 +0100
Subject: [PATCH] httpd: expose /fg-home and /fg-root

---
 src/Network/http/httpd.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Network/http/httpd.cxx b/src/Network/http/httpd.cxx
index 724596976..358b247d1 100644
--- a/src/Network/http/httpd.cxx
+++ b/src/Network/http/httpd.cxx
@@ -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, "=");