Fix a bug in Bugzilla::API::Server::response_header(), see bug 1051056

git-svn-id: svn://10.0.0.236/trunk@265913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org 2015-04-09 23:30:50 +00:00
parent 9564b76f55
commit f5bbcc03c3
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
9367 9368

View File

@ -1 +1 @@
3c7ab8316f97fe84222ccacf0d1b4be9cd43e9f8 2149ec1518cb5051d9410248a1dde91490c6576d

View File

@ -121,8 +121,8 @@ sub response_header {
# The HTTP body needs to be bytes (not a utf8 string) for recent # 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 # 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. # properly. $_[1] is the HTTP body content we're going to be sending.
if (utf8::is_utf8($_[2])) { if (utf8::is_utf8($result)) {
utf8::encode($_[2]); utf8::encode($result);
# Since we're going to just be sending raw bytes, we need to # Since we're going to just be sending raw bytes, we need to
# set STDOUT to not expect utf8. # set STDOUT to not expect utf8.
disable_utf8(); disable_utf8();