summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/rotord.cpp')
-rwxr-xr-xrotord/rotord.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp
index 74a9ae7..b69ea4a 100755
--- a/rotord/rotord.cpp
+++ b/rotord/rotord.cpp
@@ -179,6 +179,7 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
//a bit of weirdness here: prefer to just get whole file to a string.
if (request.getMethod()=="GET") {
std::vector<std::string> styles = {"style01.xml","style02.xml" }; //c++11 STL initialiser list
+ content+="<styles>\n";
for (auto &style: styles) {
Poco::File f=Poco::File(style);
if (f.exists()) {
@@ -192,6 +193,7 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
content +="\n";
}
}
+ content+="</styles>\n";
status=HTTPResponse::HTTP_OK;
}
}