summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server/REST.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-10-13 06:32:57 +0200
committerGitHub <noreply@github.com>2018-10-13 06:32:57 +0200
commit5688d0e712b85bc892ce405a1b79e3571f6d6d0f (patch)
tree39277970bd3648781fbecd1ebdcc9b3d6693d4b9 /Bugzilla/WebService/Server/REST.pm
parent9263b7453169816c23b6f307fd225f3676d57a3a (diff)
downloadbugzilla-5688d0e712b85bc892ce405a1b79e3571f6d6d0f.tar.gz
bugzilla-5688d0e712b85bc892ce405a1b79e3571f6d6d0f.tar.xz
Bug 1495741 - memory issues: Avoid copying stuff in the webservice layer so much
Diffstat (limited to 'Bugzilla/WebService/Server/REST.pm')
-rw-r--r--Bugzilla/WebService/Server/REST.pm1
1 files changed, 1 insertions, 0 deletions
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());