Mercurial > hg > orthanc
comparison Core/HttpServer/FilesystemHttpHandler.cpp @ 330:78a8eaa5f30b
cookies
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Jan 2013 11:41:13 +0100 |
parents | 64925c94825c |
children | 753e69f9326e |
comparison
equal
deleted
inserted
replaced
329:f579d50fdf8f | 330:78a8eaa5f30b |
---|---|
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 HttpHandler::Arguments header; | 57 output.SendOkHeader("text/html", false, 0, NULL); |
58 header["Content-Type"] = "text/html"; | |
59 output.SendOkHeader(header); | |
60 | |
61 output.SendString("<html>"); | 58 output.SendString("<html>"); |
62 output.SendString(" <body>"); | 59 output.SendString(" <body>"); |
63 output.SendString(" <h1>Subdirectories</h1>"); | 60 output.SendString(" <h1>Subdirectories</h1>"); |
64 output.SendString(" <ul>"); | 61 output.SendString(" <ul>"); |
65 | 62 |