summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
authorDamien Nozay <damien.nozay@gmail.com>2014-10-24 10:14:19 +0200
committerGervase Markham <gerv@gerv.net>2014-10-24 10:14:19 +0200
commitd2685d0a7e2d75e3f334dc18babfcc53f53aa973 (patch)
treef464b10e91ee12e60f0b28a3b6f86a59d6a337e5 /Bugzilla/Config
parent424bbc87bd2c105c4c5c6aab6c3f101606a400ec (diff)
downloadbugzilla-d2685d0a7e2d75e3f334dc18babfcc53f53aa973.tar.gz
bugzilla-d2685d0a7e2d75e3f334dc18babfcc53f53aa973.tar.xz
Bug 1073264 - allow attachment download to be offloaded to the webserver using X-SendFile or equivalent. r=gerv, a=glob.
Diffstat (limited to 'Bugzilla/Config')
-rw-r--r--Bugzilla/Config/Attachment.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Config/Attachment.pm b/Bugzilla/Config/Attachment.pm
index 580ec46d9..5bf854293 100644
--- a/Bugzilla/Config/Attachment.pm
+++ b/Bugzilla/Config/Attachment.pm
@@ -38,6 +38,14 @@ sub get_param_list {
},
{
+ name => 'xsendfile_header',
+ type => 's',
+ choices => ['off', 'X-Sendfile', 'X-Accel-Redirect', 'X-LIGHTTPD-send-file'],
+ default => 'off',
+ checker => \&check_multi
+ },
+
+ {
name => 'maxattachmentsize',
type => 't',
default => '1000',