@@ -35,7 +35,7 @@ void make_index_of_page(const char* dir, std::string& page, const char* url) {
<body>
<h1>Index of %s</h1>
<hr>
- <pre>
+<pre>
)", url, url);
page += c_str;
for (auto& item : dirs) {
@@ -79,8 +79,7 @@ void make_index_of_page(const char* dir, std::string& page, const char* url) {
}
page += "\r\n";
- page += R"(
- </pre>
+ page += R"(</pre>
</body>
</html>)";
@@ -28,14 +28,13 @@ void make_http_status_page(http_status status_code, std::string& page);
<h1>Index of /downloads/</h1>
<a href="../">../</a>
<a href="docs/">docs/</a> 2019-08-23 15:27:48 -
<a href="examples/">examples/</a> 2019-08-23 15:27:52 -
<a href="README.txt">README.txt</a> 2019-08-23 19:15:42 0
<a href="release/">release/</a> 2019-08-23 15:28:52 -
-
+</pre>
</html>