X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fresp.c;fp=lib%2Fresp.c;h=63c8ecaaf60483edbad97be8ab0c7c5557f83d5c;hb=81cfca6c6ec15e3a8f94e278f2bdfcc1249eb122;hp=da354f99e40f3dcb98d91863a406550d60bf0504;hpb=0328ac04990bf22e635930aa37abb8c2128a17f1;p=ashd.git diff --git a/lib/resp.c b/lib/resp.c index da354f9..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: %zi\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);