ithewei 6 gadi atpakaļ
vecāks
revīzija
e0d48cc284
2 mainītis faili ar 4 papildinājumiem un 6 dzēšanām
  1. 2 3
      http/server/http_page.cpp
  2. 2 3
      http/server/http_page.h

+ 2 - 3
http/server/http_page.cpp

@@ -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>
   <hr>
 </body>
 </html>)";

+ 2 - 3
http/server/http_page.h

@@ -28,14 +28,13 @@ void make_http_status_page(http_status status_code, std::string& page);
 <body>
   <h1>Index of /downloads/</h1>
   <hr>
-  <pre>
+<pre>
 <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>
+</pre>
   <hr>
 </body>
 </html>