Commit e7526caf authored by David Lawrence's avatar David Lawrence

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
parent b70bdeb2
......@@ -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\-/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment