[Catalyst] Conditional GET with Catalyst::Controller::REST

Gavin Carr gavin at openfusion.com.au
Fri Sep 26 03:01:24 BST 2008


On Thu, Sep 25, 2008 at 04:34:50PM +0300, Oleg Kostyuk wrote:
> > Short version is that everything works beautifully when
> > doing a HEAD, and my 304 is happily returned, but the same
> > code on a GET causes a 500, with nothing helpful logged.
> > Code snippet is:
> >
> >  sub index_GET {
> >    my ($self, $c) = @_;
> >    my $sset = $c->stash->{sset} or return;
>
> Probably, when "return" is executed - you'll get unexpected result.

Thanks, but the return behaves fine. It's the codepath where the 304 is 
returned that is breaking.

Thanks,
Gavin




More information about the Catalyst mailing list