aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
authorDamien Nozay <damien.nozay@gmail.com>2014-10-24 09:15:26 +0100
committerGervase Markham <gerv@gerv.net>2014-10-24 09:15:26 +0100
commit55e8faeed19ff618483cb5803847bdba6c80c752 (patch)
treef464b10e91ee12e60f0b28a3b6f86a59d6a337e5 /Bugzilla/Config
parentd4146c594381f3303bb06b02dbe94be69c1da538 (diff)
downloadbugs-55e8faeed19ff618483cb5803847bdba6c80c752.tar
bugs-55e8faeed19ff618483cb5803847bdba6c80c752.tar.gz
bugs-55e8faeed19ff618483cb5803847bdba6c80c752.tar.bz2
bugs-55e8faeed19ff618483cb5803847bdba6c80c752.tar.xz
bugs-55e8faeed19ff618483cb5803847bdba6c80c752.zip
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',