summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-04-10 01:14:42 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-04-10 01:14:42 +0200
commit2149ec1518cb5051d9410248a1dde91490c6576d (patch)
tree1627621b5b26dbada7d1e52e176b7e9a8073d3e1 /Bugzilla
parent3c7ab8316f97fe84222ccacf0d1b4be9cd43e9f8 (diff)
downloadbugzilla-2149ec1518cb5051d9410248a1dde91490c6576d.tar.gz
bugzilla-2149ec1518cb5051d9410248a1dde91490c6576d.tar.xz
Fix a bug in Bugzilla::API::Server::response_header(), see bug 1051056
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/API/Server.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/API/Server.pm b/Bugzilla/API/Server.pm
index c2682ab8a..439f6e743 100644
--- a/Bugzilla/API/Server.pm
+++ b/Bugzilla/API/Server.pm
@@ -121,8 +121,8 @@ sub response_header {
# The HTTP body needs to be bytes (not a utf8 string) for recent
# versions of HTTP::Message, but JSON::RPC::Server doesn't handle this
# properly. $_[1] is the HTTP body content we're going to be sending.
- if (utf8::is_utf8($_[2])) {
- utf8::encode($_[2]);
+ if (utf8::is_utf8($result)) {
+ utf8::encode($result);
# Since we're going to just be sending raw bytes, we need to
# set STDOUT to not expect utf8.
disable_utf8();