summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2013-11-27 19:02:11 +0100
committerGervase Markham <gerv@mozilla.org>2013-11-27 19:02:11 +0100
commite21cee47ced69277073d3d2395e8a7cb64e71c14 (patch)
tree7f3a72f12ff4653f5c9d13e692d3d3e5944e895e /extensions
parentfc11e1a8d7e0ca1f07fbb89dfb77df186a8bf757 (diff)
downloadbugzilla-e21cee47ced69277073d3d2395e8a7cb64e71c14.tar.gz
bugzilla-e21cee47ced69277073d3d2395e8a7cb64e71c14.tar.xz
Bug 938596 - Add hook for modifying HTTP headers. r=LpSolit.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Example/Extension.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm
index c0015803e..7e77b03f7 100644
--- a/extensions/Example/Extension.pm
+++ b/extensions/Example/Extension.pm
@@ -336,6 +336,13 @@ sub bugmail_relationships {
$relationships->{+REL_EXAMPLE} = 'Example';
}
+sub cgi_headers {
+ my ($self, $args) = @_;
+ my $headers = $args->{'headers'};
+
+ $headers->{'-x_test_header'} = "Test header from Example extension";
+}
+
sub config_add_panels {
my ($self, $args) = @_;