--- src/proto.c.orig Mon Jan 31 15:55:08 2005 +++ src/proto.c Mon May 9 13:34:16 2005 @@ -505,7 +505,8 @@ } } }else{ - sprintf(Doc->Buf.buf, "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nLast-Modified: %s\r\n\r\n", buf); + size_t s = Udm_ftp_size(&Doc->connp, full_path); + sprintf(Doc->Buf.buf, "HTTP/1.1 200 OK\r\nContent-Length: %d\r\nContent-Type: text/html\r\nLast-Modified: %s\r\n\r\n", s, buf); Doc->Buf.size = strlen(Doc->Buf.buf); } }