diff options
Diffstat (limited to 'www/quickie')
-rw-r--r-- | www/quickie/Makefile | 1 | ||||
-rw-r--r-- | www/quickie/files/patch-lib_file_regular.cc | 18 |
2 files changed, 13 insertions, 6 deletions
diff --git a/www/quickie/Makefile b/www/quickie/Makefile index 279d6201e8be..959864ae963c 100644 --- a/www/quickie/Makefile +++ b/www/quickie/Makefile @@ -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}/ diff --git a/www/quickie/files/patch-lib_file_regular.cc b/www/quickie/files/patch-lib_file_regular.cc index 53ed768dd175..74a5b4178ee5 100644 --- a/www/quickie/files/patch-lib_file_regular.cc +++ b/www/quickie/files/patch-lib_file_regular.cc @@ -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]; + |