From 27ecca5e682829c23bd5caefee6417f1c2d4f575 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 11 Mar 2015 17:45:02 +0000 Subject: 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 --- Bugzilla/WebService/Server/REST.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/WebService') 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\-/; -- cgit v1.2.3-24-g4f1b