We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49150f4 commit 7302697Copy full SHA for 7302697
1 file changed
src/HttpCommandServer.hpp
@@ -291,12 +291,14 @@ namespace http_command {
291
return buildResponse("200 OK", "text/html; charset=UTF-8", body);
292
} else {
293
if (!fileExists(path)) {
294
- cout << "File not found: " << path << std::endl;
295
if (const char* ffHome = std::getenv("FOREFIREHOME")) {
296
297
std::string altPath = std::string(ffHome) +"/tools/htdocs/"+ path;
298
- if (fileExists(altPath))
+ if (fileExists(altPath)){
299
path = altPath;
+ }
300
+ } else {
301
+ cout << "FOREFIREHOME not set. File not found: " << path << std::endl;
302
}
303
304
if (fileExists(path)) {
0 commit comments