mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
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:
parent
cda5ba2ceb
commit
fa25e61082
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113129
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user