Fix dodgy patch - send correct Content-Length: header.
PR: ports/99075 Submitted by: Nikolai Saoukh <nms+freebsd@otdel-1.org> Approved by: shaun (me), ahze (mentor)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= quickie
|
||||
PORTVERSION= 1.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://${PORTNAME}.sourceforge.net/ \
|
||||
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
|
||||
|
||||
@@ -12,12 +12,18 @@
|
||||
#include <careful.h>
|
||||
#include <cgi.h>
|
||||
#include <configuration.h>
|
||||
@@ -386,7 +391,7 @@
|
||||
@@ -384,11 +389,8 @@
|
||||
return;
|
||||
}
|
||||
output_stdout op;
|
||||
op << "Content-Type: text/html\n"
|
||||
"Content-Length: "
|
||||
- op << "Content-Type: text/html\n"
|
||||
- "Content-Length: "
|
||||
- << st.st_size
|
||||
+ << (char)st.st_size
|
||||
<< "\n"
|
||||
"\n";
|
||||
- << "\n"
|
||||
- "\n";
|
||||
+ op << "Content-Type: text/html\n";
|
||||
+ op.printf("Content-Length: %llu\n\n", st.st_size);
|
||||
for (;;)
|
||||
{
|
||||
char buffer[1 << 14];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user