Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Plack-Middleware-Cache CPAN distribution.

Report information
The Basics
Id: 70594
Status: new
Priority: 0/
Queue: Plack-Middleware-Cache

People
Owner: Nobody in particular
Requestors: wesdmalone [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: body should be an array ref or filehandle at /usr/share/perl5/Plack/Middleware/StackTrace.pm line 27
Date: Mon, 29 Aug 2011 21:12:29 -0500
To: bug-Plack-Middleware-Cache [...] rt.cpan.org
From: Wes Malone <wesdmalone [...] gmail.com>
I'm trying out Plack::Middleware::Cache with a minimal setup. It can serve up a normal request, but as soon as I append the cache parameter, it throws this error: body should be an array ref or filehandle at /usr/share/perl5/Plack/Middleware/StackTrace.pm line 27 use strict; use warnings; use 5.010.0; use Plack::Builder; builder { enable 'Cache', match_url => '[?&]cache', cache_dir => '/tmp/cache'; mount '/' => sub { [ 200, [], ['hello world'] ] }; }; This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi Plack 0.9951 Plack::Middleware::Cache 0.12 wes@mopps:~$ uname -a Linux mopps 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux