commit 63de51aa52c69c57370c77d51ab9fc84196b7073
parent 5515917b4123b50a3ecce3dc22b85c16908014b9
Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 13 Nov 2011 21:55:07 +0100
Making the textfiles RFC conformant.
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/handlr.c b/handlr.c
@@ -70,7 +70,7 @@ handledir(int sock, char *path, char *port, char *base, char *args,
}
free(dirent);
}
- tprintf(sock, "\r\n");
+ tprintf(sock, ".\r\n");
}
free(pa);
@@ -94,7 +94,7 @@ handlegph(int sock, char *file, char *port, char *base, char *args,
freeelem(act->n[i]);
act->n[i] = nil;
}
- tprintf(sock, "\r\n.\r\n\r\n");
+ tprintf(sock, ".\r\n");
freeindex(act);
}
@@ -223,7 +223,7 @@ handledcgi(int sock, char *file, char *port, char *base, char *args,
printelem(sock, el, ohost, port);
freeelem(el);
}
- tprintf(sock, "\r\n.\r\n\r\n");
+ tprintf(sock, ".\r\n");
wait(NULL);
if (path != nil)
diff --git a/main.c b/main.c
@@ -191,7 +191,7 @@ handlerequest(int sock, char *base, char *ohost, char *port, char *clienth,
return;
}
- tprintf(sock, err, recvc);
+ tprintf(sock, err, recvc);
if(loglvl & ERRORS)
logentry(clienth, clientp, recvc, "not found");
}