maintain $env->{Web::Dispatch.original_env} for ParamParser to cache in
[catagits/Web-Simple.git] / lib / Web / Dispatch.pm
index 46961c2..c6dcded 100644 (file)
@@ -37,7 +37,7 @@ sub _dispatch {
 
     return $try if ref($try) eq 'ARRAY';
     if (ref($try) eq 'HASH') {
-      $env = { %$env, %$try };
+      $env = { 'Web::Dispatch.original_env' => $env, %$env, %$try };
       next;
     }