Don't forget to send the Content-length header after calculating it.

PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
This commit is contained in:
David Malone 2003-04-05 17:15:38 +00:00
parent cda5ba2ceb
commit fa25e61082
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113129

View File

@ -319,6 +319,7 @@ http_request(void)
http_date();
sprintf(buff, "Content-length: %lld\r\n", file_status.st_size);
write(con_sock, buff, strlen(buff));
if (strstr(filename,".txt")) {
strcpy(buff,"Content-type: text/plain\r\n");