From 5688d0e712b85bc892ce405a1b79e3571f6d6d0f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 13 Oct 2018 00:32:57 -0400 Subject: Bug 1495741 - memory issues: Avoid copying stuff in the webservice layer so much --- Bugzilla/WebService/Server/REST.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/WebService/Server/REST.pm') diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index 13896b248..5d8367410 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -165,6 +165,7 @@ sub response { my $template = Bugzilla->template; $content = ""; + $result->encode if blessed $result; $template->process("rest.html.tmpl", { result => $result }, \$content) || ThrowTemplateError($template->error()); -- cgit v1.2.3-24-g4f1b