From 8c4c5e62552dff244d2444a9d5d3a4585c89bc0a Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 8 Mar 2013 12:56:55 +0000 Subject: making styles valid xml --- rotord/rotord.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rotord/rotord.cpp') 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 styles = {"style01.xml","style02.xml" }; //c++11 STL initialiser list + content+="\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+="\n"; status=HTTPResponse::HTTP_OK; } } -- cgit v1.2.3