Cherry pick everything bar the use parent change from 25d49c2, fixing RT#46680
[catagits/Catalyst-Action-Serialize-Data-Serializer.git] / lib / Catalyst / Action / Deserialize / YAML.pm
index bae0fc7..6a7781f 100644 (file)
@@ -1,10 +1,3 @@
-#
-# Catlyst::Action::Deserialize::YAML.pm
-# Created by: Adam Jacob, Marchex, <adam@marchex.com>
-# Created on: 10/12/2006 03:00:32 PM PDT
-#
-# $Id$
-
 package Catalyst::Action::Deserialize::YAML;
 
 use strict;
@@ -21,7 +14,8 @@ sub execute {
     if ($body) {
         my $rdata;
         eval {
-            $rdata = LoadFile( $c->request->body );
+            my $body = $c->request->body;
+            $rdata = LoadFile( "$body" );
         };
         if ($@) {
             return $@;