diff options
author | dklawren <dklawren@users.noreply.github.com> | 2016-10-14 18:39:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-14 18:39:09 +0200 |
commit | d943c46455a0ec8d3a3f3dacd05debc8d9c9d5f1 (patch) | |
tree | 8149b0010d48fc465479c46abbc1cdf2563fe095 | |
parent | 3c9e2a8c2261fd978816676ffb21bb4d0c0c3099 (diff) | |
parent | a716dc746cca1dc5d65e90b0dde3473ad84328c3 (diff) | |
download | bugzilla-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
-rw-r--r-- | Bugzilla/API/1_0/Server.pm | 2 |
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; |