mirror of /home/gitosis/repositories/libowfat.git
fix httperror in httpd test
This commit is contained in:
parent
553e8d2593
commit
fff6656e62
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue