Update HTTP::Body dep so that the uploadtmp config value will work (RT #22540)
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index 6935c37..424d661 100644 (file)
@@ -314,7 +314,7 @@ sub prepare_body {
         unless ( $c->request->{_body} ) {
             my $type = $c->request->header('Content-Type');
             $c->request->{_body} = HTTP::Body->new( $type, $length );
-            $c->request->{_body}->{tmpdir} = $c->config->{uploadtmp}
+            $c->request->{_body}->tmpdir( $c->config->{uploadtmp} )
               if exists $c->config->{uploadtmp};
         }