summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2016-10-14 18:39:09 +0200
committerGitHub <noreply@github.com>2016-10-14 18:39:09 +0200
commitd943c46455a0ec8d3a3f3dacd05debc8d9c9d5f1 (patch)
tree8149b0010d48fc465479c46abbc1cdf2563fe095 /Bugzilla
parent3c9e2a8c2261fd978816676ffb21bb4d0c0c3099 (diff)
parenta716dc746cca1dc5d65e90b0dde3473ad84328c3 (diff)
downloadbugzilla-d943c46455a0ec8d3a3f3dacd05debc8d9c9d5f1.tar.gz
bugzilla-d943c46455a0ec8d3a3f3dacd05debc8d9c9d5f1.tar.xz
Merge pull request #30 from kyoshino/bug-1309737-user-agent
Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/API/1_0/Server.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm
index a443cd514..4dd0c7ddb 100644
--- a/Bugzilla/API/1_0/Server.pm
+++ b/Bugzilla/API/1_0/Server.pm
@@ -152,7 +152,7 @@ sub print_response {
my ($self, $response) = @_;
# Access Control
- my @allowed_headers = qw(accept content-type origin x-requested-with);
+ my @allowed_headers = qw(accept content-type origin user-agent x-requested-with);
foreach my $header (keys %{ API_AUTH_HEADERS() }) {
# We want to lowercase and replace _ with -
my $translated_header = $header;