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:
@@ -1 +1 @@
|
||||
9331
|
||||
9332
|
||||
@@ -1 +1 @@
|
||||
b70bdeb2ed17a03e1a24b37cb0a61d66d868522d
|
||||
e7526caf7802734ca54ee907e8a2cecf61013b25
|
||||
@@ -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\-/;
|
||||
|
||||
Reference in New Issue
Block a user