PSGI improvements

Call to_app() explicitly rather than using Plack::Component's overload
Compile the psgi sub once per app, not once per req
This commit is contained in:
Patrick Donelan 2010-04-17 19:06:07 -04:00
parent ad68c7bd19
commit 9621120825
6 changed files with 66 additions and 60 deletions

View file

@ -50,6 +50,6 @@ builder {
};
# Return the app
mount '/' => $wg;
mount '/' => $wg->to_app;
};