summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-03-11 18:56:59 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-03-11 18:56:59 +0100
commite7526caf7802734ca54ee907e8a2cecf61013b25 (patch)
treeb53be34173dea742c884cb7ae0d04d3c2001e4a5 /Bugzilla/WebService
parentb70bdeb2ed17a03e1a24b37cb0a61d66d868522d (diff)
downloadbugzilla-e7526caf7802734ca54ee907e8a2cecf61013b25.tar.gz
bugzilla-e7526caf7802734ca54ee907e8a2cecf61013b25.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 16e041985..d646dd795 100644
--- a/Bugzilla/WebService/Server/REST.pm
+++ b/Bugzilla/WebService/Server/REST.pm
@@ -135,7 +135,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\-/;