From 2d5e06918b71ac99c1d30935d4a242057443efe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 12 Jul 2013 16:53:48 +0200 Subject: [PATCH] Hydra::View::Plain: Explicitly set the response body. This fixes a bug with Catalyst 1.39 whereby a raw hash table would erroneously be returned for /nix-cache-info. --- src/lib/Hydra/View/Plain.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/View/Plain.pm b/src/lib/Hydra/View/Plain.pm index 764770a0..d34cc44c 100644 --- a/src/lib/Hydra/View/Plain.pm +++ b/src/lib/Hydra/View/Plain.pm @@ -8,7 +8,7 @@ sub process { my ($self, $c) = @_; $c->response->content_encoding("utf-8"); $c->response->content_type('text/plain') unless $c->response->content_type() ne ""; - $self->SUPER::process($c); + $c->response->body($c->stash->{plain}->{data}); } 1;