diff --git a/Services/WebServer/Client.cpp b/Services/WebServer/Client.cpp index 22864f2379..37bafda560 100644 --- a/Services/WebServer/Client.cpp +++ b/Services/WebServer/Client.cpp @@ -167,18 +167,16 @@ void Client::handle_directory_listing(const String& requested_path, const String builder.append(escape_html_entities(requested_path)); builder.append("\n"); builder.append("
\n"); - builder.append("
\n");
+    builder.append("\n");
 
     Core::DirIterator dt(real_path);
     while (dt.has_next()) {
         auto name = dt.next_path();
-        builder.append("");
 
         StringBuilder path_builder;
         path_builder.append(real_path);
@@ -190,13 +188,14 @@ void Client::handle_directory_listing(const String& requested_path, const String
         if (rc < 0) {
             perror("stat");
         }
-        builder.appendf("  %10d", st.st_size);
-        builder.appendf("  ");
+        builder.appendf("", st.st_size);
+        builder.append("");
+        builder.append("\n");
     }
 
-    builder.append("\n");
+    builder.append("
"); builder.append(escape_html_entities(name)); - builder.append(""); - for (size_t i = 0; i < (40 - name.length()); ++i) - builder.append(' '); + builder.append("%10d"); builder.append(Core::DateTime::from_timestamp(st.st_mtime).to_string()); - builder.append("\n"); + builder.append("
\n"); builder.append("
\n"); builder.append("Generated by WebServer (SerenityOS)\n"); builder.append("\n");