Fix ->engine->env for the dev server. Catalyst-Plugin-ENV to please to be dieing...
Tomas Doran [Wed, 13 May 2009 16:30:50 +0000 (16:30 +0000)]
Changes
lib/Catalyst/Engine/HTTP.pm

diff --git a/Changes b/Changes
index 349fc63..3a02976 100644 (file)
--- a/Changes
+++ b/Changes
@@ -10,6 +10,8 @@
           noted by dmaki. (t0m)
         - Fix so that / (and other special characters) are URL encoded when
           passed into $c->uri_for as Args/CaptureArgs (t0m)
+        - Fix development server so that $c->engine->env returns the correct
+          environment (t0m)
 
 5.80003 2009-04-29 16:23:53
         - Various POD tweaks. (hdp, dandv)
index 62481ea..72de12c 100644 (file)
@@ -388,7 +388,7 @@ sub _handler {
             # this far out, but then again it's only the dev server anyway.
             local $SIG{CHLD} = 'DEFAULT';
 
-            $class->handle_request;
+            $class->handle_request( env => \%ENV );
         }
     
         DEBUG && warn "Request done\n";