hkoba / yatt_lite

YATT::Lite - Template with "use strict"
Other
5 stars 0 forks source link

BUG: mount_psgi doesn't work properly #124

Closed hkoba closed 6 years ago

hkoba commented 6 years ago

I found mount_psgi (introduced in #16 ) didn't work for following code:

    use Plack::App::CGIBin;
    # Both /cgi-bin and /cgi-bin/ should work.
    $site->mount_psgi("/cgi-bin/" => Plack::App::CGIBin->new(
      root => "$app_root/cgi-bin"
    )->to_app);

Potentially, fixing this could cause API incompatibility. But above code is typical use case and is important than old behavior. So, let's fix it!