diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index ca57ce1c..cde5fb10 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -239,7 +239,7 @@ sub end : ActionClass('RenderView') { $c->response->status . " " . HTTP::Status::status_message($c->response->status); } - $c->forward('serialize'); + $c->forward('serialize') if defined $c->stash->{resource}; } sub serialize : ActionClass('Serialize') { }