Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e7526caf
Commit
e7526caf
authored
Mar 11, 2015
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
REST.pm
Bugzilla/WebService/Server/REST.pm
+1
-1
No files found.
Bugzilla/WebService/Server/REST.pm
View file @
e7526caf
...
@@ -135,7 +135,7 @@ sub response {
...
@@ -135,7 +135,7 @@ sub response {
# Access Control
# Access Control
my
@allowed_headers
=
qw(accept content-type origin x-requested-with)
;
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 -
# We want to lowercase and replace _ with -
my
$translated_header
=
$header
;
my
$translated_header
=
$header
;
$translated_header
=~
tr
/A-Z_/
a
-
z
\-/
;
$translated_header
=~
tr
/A-Z_/
a
-
z
\-/
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment