diff --git a/resp.c b/resp.c
index 7a7d7a2..7f75a08 100644
--- a/resp.c
+++ b/resp.c
@@ -68,6 +68,7 @@ resp_dir(int fd, char *name, struct request *r)
if (dprintf(fd,
"\n\n\t
"
- "Index of %s\n"
- "\t\n\t\t..",
+ "Index of %s"
+ "\n\n\t\n\t\n\t\t"
+ "- ..
",
name) < 0) {
s = S_REQUEST_TIMEOUT;
@@ -83,5 +84,6 @@ resp_dir(int fd, char *name, struct request *r)
/* entry line */
- if (dprintf(fd, "
\n\t\t%s%s",
+ if (dprintf(fd, "\n\t\t- "
+ "%s%s
",
e[i]->d_name,
(e[i]->d_type == DT_DIR) ? "/" : "",
@@ -94,5 +96,5 @@ resp_dir(int fd, char *name, struct request *r)
/* listing footer */
- if (dprintf(fd, "\n\t\n\n") < 0) {
+ if (dprintf(fd, "\n\t
\n\t