From 283d5785c782e3a79eb371cd6a223d19205bd175 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 4 Sep 2009 21:27:54 +0000 Subject: Bug 486306: Truncated XML-RPC response (incorrect content-length header) Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/WebService/Server/XMLRPC.pm | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm index e85fab95c..c85614f7a 100644 --- a/Bugzilla/WebService/Server/XMLRPC.pm +++ b/Bugzilla/WebService/Server/XMLRPC.pm @@ -149,16 +149,6 @@ sub new { return $self; } -sub as_string { - my $self = shift; - my ($value) = @_; - # Something weird happens with XML::Parser when we have upper-ASCII - # characters encoded as UTF-8, and this fixes it. - utf8::encode($value) if utf8::is_utf8($value) - && $value =~ /^[\x00-\xff]+$/; - return $self->SUPER::as_string($value); -} - # Here the XMLRPC::Serializer is extended to use the XMLRPC nil extension. sub encode_object { my $self = shift; -- cgit v1.2.3-24-g4f1b