diff Core/HttpServer/HttpOutput.cpp @ 474:a9693dc7089c

move tostring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Jul 2013 17:25:53 +0200
parents c9a5d72f8481
children 72cca077abf8
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.cpp	Mon Jul 15 17:22:13 2013 +0200
+++ b/Core/HttpServer/HttpOutput.cpp	Mon Jul 15 17:25:53 2013 +0200
@@ -104,7 +104,7 @@
   void HttpOutput::SendMethodNotAllowedError(const std::string& allowed)
   {
     std::string s = 
-      "HTTP/1.1 405 " + std::string(HttpException::GetDescription(HttpStatus_405_MethodNotAllowed)) +
+      "HTTP/1.1 405 " + std::string(Toolbox::ToString(HttpStatus_405_MethodNotAllowed)) +
       "\r\nAllow: " + allowed + 
       "\r\n\r\n";
     Send(&s[0], s.size());
@@ -127,7 +127,7 @@
   {
     std::string s = "HTTP/1.1 " + 
       boost::lexical_cast<std::string>(status) +
-      " " + std::string(HttpException::GetDescription(status)) +
+      " " + std::string(Toolbox::ToString(status)) +
       "\r\n\r\n";
     Send(&s[0], s.size());
   }
@@ -190,7 +190,7 @@
   void HttpOutput::Redirect(const std::string& path)
   {
     std::string s = 
-      "HTTP/1.1 301 " + std::string(HttpException::GetDescription(HttpStatus_301_MovedPermanently)) + 
+      "HTTP/1.1 301 " + std::string(Toolbox::ToString(HttpStatus_301_MovedPermanently)) + 
       "\r\nLocation: " + path +
       "\r\n\r\n";
     Send(&s[0], s.size());