summaryrefslogtreecommitdiffstats
path: root/Bugzilla/API/Server.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/API/Server.pm')
-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();