We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3a4a45 + 54c62cf commit c94ca09Copy full SHA for c94ca09
lib/MetaCPAN/Server.pm
@@ -10,7 +10,7 @@ use CatalystX::RoleApplicator;
10
use File::Temp qw( tempdir );
11
use Plack::Middleware::ReverseProxy;
12
use Plack::Middleware::ServerStatus::Lite;
13
-use Ref::Util qw( is_arrayref );
+use Ref::Util qw( is_arrayref is_hashref );
14
use Plack::Builder;
15
16
extends 'Catalyst';
@@ -156,7 +156,7 @@ sub read_param {
156
# with a not_found message
157
sub stash_or_detach {
158
my ( $c, $data ) = @_;
159
- $data
+ $data and is_hashref($data)
160
? $c->stash($data)
161
: $c->detach( '/not_found',
162
['The requested info could not be found'] );
0 commit comments