From 1051985534dd0351e579656559a14d6118910d07 Mon Sep 17 00:00:00 2001 From: Olli Hauer Date: Sat, 22 Jun 2013 20:24:57 +0000 Subject: [PATCH] - Extract Last-Modified from the right place PR: ports/178668 Submitted by: Hung-Yi Chen Approved by: Andrew Bennet (maintainer) --- www/mod_xsendfile/Makefile | 8 ++------ www/mod_xsendfile/files/patch-mod_xsendfile.c | 11 +++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 www/mod_xsendfile/files/patch-mod_xsendfile.c diff --git a/www/mod_xsendfile/Makefile b/www/mod_xsendfile/Makefile index e0a21a6e0c59..6702a59f8ef8 100644 --- a/www/mod_xsendfile/Makefile +++ b/www/mod_xsendfile/Makefile @@ -1,13 +1,9 @@ -# New ports collection makefile for: mod_xsendfile Apache module -# Date created: 2006-11-23 -# Whom: Andrew T. Bennett -# +# Created by: Andrew T. Bennett # $FreeBSD$ -# PORTNAME= mod_xsendfile PORTVERSION= 0.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= https://tn123.org/mod_xsendfile/ \ http://cloud.github.com/downloads/potatosalad/mod_xsendfile/ diff --git a/www/mod_xsendfile/files/patch-mod_xsendfile.c b/www/mod_xsendfile/files/patch-mod_xsendfile.c new file mode 100644 index 000000000000..b9adca6877e1 --- /dev/null +++ b/www/mod_xsendfile/files/patch-mod_xsendfile.c @@ -0,0 +1,11 @@ +--- mod_xsendfile.c.orig 2013-05-16 02:15:41.000000000 +0800 ++++ mod_xsendfile.c 2013-05-16 02:15:48.000000000 +0800 +@@ -439,7 +439,7 @@ + conf->ignoreLM == XSENDFILE_ENABLED + || ( + !apr_table_get(r->headers_out, "last-modified") +- && !apr_table_get(r->headers_out, "last-modified") ++ && !apr_table_get(r->err_headers_out, "last-modified") + ) + ) { + apr_table_unset(r->err_headers_out, "last-modified");