diff Core/HttpServer/FilesystemHttpHandler.cpp @ 324:64925c94825c

api improvement
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Jan 2013 09:29:56 +0100
parents 1ac3aacd10a5
children 78a8eaa5f30b
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpHandler.cpp	Mon Jan 07 16:48:35 2013 +0100
+++ b/Core/HttpServer/FilesystemHttpHandler.cpp	Tue Jan 08 09:29:56 2013 +0100
@@ -54,7 +54,10 @@
   {
     namespace fs = boost::filesystem;
 
-    output.SendCustomOkHeader("Content-Type: text/html\r\n");
+    HttpHandler::Arguments header;
+    header["Content-Type"] = "text/html";
+    output.SendOkHeader(header);
+
     output.SendString("<html>");
     output.SendString("  <body>");
     output.SendString("    <h1>Subdirectories</h1>");