1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

Update to 0.0.11. Fixes some nasty bugs.

PR:		ports/169582
Approved by:	maintainer
This commit is contained in:
Adam Weinberger 2012-07-11 01:43:05 +00:00
parent f71ddd644e
commit 2066a94ad9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300746
3 changed files with 3 additions and 16 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= tinytinyhttpd
PORTVERSION= 0.0.9
PORTVERSION= 0.0.11
CATEGORIES= www
MASTER_SITES= http://cloud.github.com/downloads/mattn/tinytinyhttpd/ \
${MASTER_SITE_LOCAL}

View File

@ -1,2 +1,2 @@
SHA256 (tinytinyhttpd-0.0.9.tar.gz) = 374041df75722920a355b3284d242a9fcdf009cc7c67078fd527c2682462792f
SIZE (tinytinyhttpd-0.0.9.tar.gz) = 147412
SHA256 (tinytinyhttpd-0.0.11.tar.gz) = 844150ef4f88b3d198273937861e3e9a3854b412f29b8be64ea01e9de7c71e9a
SIZE (tinytinyhttpd-0.0.11.tar.gz) = 154501

View File

@ -1,13 +0,0 @@
diff --git httpd.cxx httpd.cxx
index 98cec3c..958200a 100644
--- httpd.cxx
+++ httpd.cxx
@@ -1734,7 +1734,7 @@ request_done:
#if defined LINUX_SENDFILE_API
sent = sendfile(msgsock, fileno(res_info->read), NULL, total);
#elif defined FREEBSD_SENDFILE_API
- sendfile(msgsock, fileno(res_info->read), total, &sent, NULL, 0);
+ if (sendfile(msgsock, fileno(res_info->read), NULL, total, NULL, NULL, 0) == 0) sent = total;
#elif defined _WIN32
if (!res_info->process && lpfnTransmitFile && lpfnTransmitFile(
msgsock,