From 5b599cb67dc0158c5551ddd751dd243748e66526 Mon Sep 17 00:00:00 2001 From: leitner Date: Thu, 18 Sep 2003 17:02:54 +0000 Subject: [PATCH] fix httperror in httpd test --- test/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/httpd.c b/test/httpd.c index 011cc6a..397b631 100644 --- a/test/httpd.c +++ b/test/httpd.c @@ -56,7 +56,7 @@ void httperror(struct http_data* r,const char* title,const char* message) { r->hdrbuf="HTTP/1.0 500 internal error\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\nout of memory\n"; r->hlen=strlen(r->hdrbuf); } else { - i=fmt_str(c,"HTTP/1.0 "); + c+=fmt_str(c,"HTTP/1.0 "); c+=fmt_str(c,title); c+=fmt_str(c,"\r\nContent-Type: text/html\r\nConnection: "); c+=fmt_str(c,r->keepalive?"keep-alive":"close");