Skip to content

Commit

Permalink
Bug 1141440: OPTION response for CORS requests to REST doesn't allow …
Browse files Browse the repository at this point in the history
…X-Bugzilla headers

- Fixed a new hash constant error that did not fail locally due to Perl version difference
  • Loading branch information
dklawren committed Mar 11, 2015
1 parent b70bdeb commit e7526ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bugzilla/WebService/Server/REST.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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\-/;
Expand Down

0 comments on commit e7526ca

Please sign in to comment.