From: Mikko Rasa Date: Sat, 6 Aug 2011 20:59:00 +0000 (+0300) Subject: Add linefeeds to error response content X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=commitdiff_plain;h=96abc895c4484ce437cde9f198ba699210d80070 Add linefeeds to error response content --- diff --git a/source/server.cpp b/source/server.cpp index 45bf69b..2fcfb90 100644 --- a/source/server.cpp +++ b/source/server.cpp @@ -99,7 +99,7 @@ void Server::client_data_available(Client &cl) if(cl.request->get_method()!="GET" && cl.request->get_method()!="POST") { response = new Response(NOT_IMPLEMENTED); - response->add_content("Method not implemented"); + response->add_content("Method not implemented\n"); } } catch(const exception &e) @@ -131,7 +131,7 @@ void Server::client_data_available(Client &cl) if(response->get_status()==NONE) { response = new Response(NOT_FOUND); - response->add_content("The requested resource was not found"); + response->add_content("The requested resource was not found\n"); } } }