summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-03-11 18:45:02 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-03-11 18:45:02 +0100
commit27ecca5e682829c23bd5caefee6417f1c2d4f575 (patch)
tree1cf23cd8aed4a0a07a7052979513934c5923f1a8 /Bugzilla/WebService
parentb88a97f556f216eead8277977550b56156a1715a (diff)
downloadbugzilla-27ecca5e682829c23bd5caefee6417f1c2d4f575.tar.gz
bugzilla-27ecca5e682829c23bd5caefee6417f1c2d4f575.tar.xz
Bug 1141440: OPTION response for CORS requests to REST doesn't allow X-Bugzilla headers
- Fixed a new hash constant error that did not fail locally due to Perl version difference
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Server/REST.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm
index 44e85835e..1af41fe16 100644
--- a/Bugzilla/WebService/Server/REST.pm
+++ b/Bugzilla/WebService/Server/REST.pm
@@ -142,7 +142,7 @@ sub response {
# Access Control
my @allowed_headers = qw(accept content-type origin x-requested-with);
- foreach my $header (keys API_AUTH_HEADERS()) {
+ foreach my $header (keys %{ API_AUTH_HEADERS() }) {
# We want to lowercase and replace _ with -
my $translated_header = $header;
$translated_header =~ tr/A-Z_/a-z\-/;