diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-03-08 12:56:55 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-03-08 12:56:55 +0000 |
| commit | 8c4c5e62552dff244d2444a9d5d3a4585c89bc0a (patch) | |
| tree | a8511f871a339078f1dedd8bf7427c43bd84bd78 /rotord/rotord.cpp | |
| parent | 20eaa8e39617cc22147b82d678b72ded2dd5fe27 (diff) | |
making styles valid xml
Diffstat (limited to 'rotord/rotord.cpp')
| -rwxr-xr-x | rotord/rotord.cpp | 2 |
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; } } |
