X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fresp.c;h=63c8ecaaf60483edbad97be8ab0c7c5557f83d5c;hb=81cfca6c6ec15e3a8f94e278f2bdfcc1249eb122;hp=b6c91ae726d54115ee49c7d90834ece40e13d038;hpb=b4164ce630753af81884d347b930625fb020b018;p=ashd.git diff --git a/lib/resp.c b/lib/resp.c index b6c91ae..63c8eca 100644 --- a/lib/resp.c +++ b/lib/resp.c @@ -74,10 +74,10 @@ void simpleerror(int fd, int code, char *msg, char *fmt, ...) bufcatstr(buf, "\r\n"); free(tmp2); out = fdopen(fd, "w"); - fprintf(out, "HTTP/1.1 %i %s\r\n", code, msg); - fprintf(out, "Content-Type: text/html\r\n"); - fprintf(out, "Content-Length: %i\r\n", buf.d); - fprintf(out, "\r\n"); + fprintf(out, "HTTP/1.1 %i %s\n", code, msg); + fprintf(out, "Content-Type: text/html\n"); + fprintf(out, "Content-Length: %zi\n", buf.d); + fprintf(out, "\n"); fwrite(buf.b, 1, buf.d, out); fclose(out); buffree(buf);