comparison 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
comparison
equal deleted inserted replaced
323:052dede32761 324:64925c94825c
52 const UriComponents& uri, 52 const UriComponents& uri,
53 const boost::filesystem::path& p) 53 const boost::filesystem::path& p)
54 { 54 {
55 namespace fs = boost::filesystem; 55 namespace fs = boost::filesystem;
56 56
57 output.SendCustomOkHeader("Content-Type: text/html\r\n"); 57 HttpHandler::Arguments header;
58 header["Content-Type"] = "text/html";
59 output.SendOkHeader(header);
60
58 output.SendString("<html>"); 61 output.SendString("<html>");
59 output.SendString(" <body>"); 62 output.SendString(" <body>");
60 output.SendString(" <h1>Subdirectories</h1>"); 63 output.SendString(" <h1>Subdirectories</h1>");
61 output.SendString(" <ul>"); 64 output.SendString(" <ul>");
62 65