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


git-svn-id: svn://10.0.0.236/trunk@265859 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org
2015-03-11 18:15:55 +00:00
parent 121b7eb458
commit 0bb19b0db2
3 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
9331
9332

View File

@@ -1 +1 @@
b70bdeb2ed17a03e1a24b37cb0a61d66d868522d
e7526caf7802734ca54ee907e8a2cecf61013b25

View File

@@ -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\-/;