summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.pm
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 /Bugzilla/Hook.pm
parentfc11e1a8d7e0ca1f07fbb89dfb77df186a8bf757 (diff)
downloadbugzilla-e21cee47ced69277073d3d2395e8a7cb64e71c14.tar.gz
bugzilla-e21cee47ced69277073d3d2395e8a7cb64e71c14.tar.xz
Bug 938596 - Add hook for modifying HTTP headers. r=LpSolit.
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm27
1 files changed, 27 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index 4c8933b16..e6a0ba283 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -641,6 +641,33 @@ spaces.
=back
+=head2 cgi_headers
+
+This allows you to modify the HTTP headers sent out on every Bugzilla
+response.
+
+Params:
+
+=over
+
+=item C<headers>
+
+A hashref, where the keys are header names and the values are header
+values. Keys need to be lower-case, and begin with a "-". If you use
+the "_" character it will be converted to "-", and the library will
+also fix the casing to Camel-Case.
+
+You can delete (some) headers that Bugzilla adds by deleting entries
+from the hash.
+
+=item C<cgi>
+
+The CGI object, which may tell you useful things about the response on
+which to base a decision of whether or not to add a header.
+
+=back
+
+
=head2 config_add_panels
If you want to add new panels to the Parameters administrative interface,