On Sun, Feb 20, 2011 at 12:51 AM, ynon perek <[email protected]> wrote:
> Hi Sawyer & all, > Hi Ynon! I keep missing you on IRC. :) > Well so far dancer is really saving me a LOT of dev time (alternatives > included J2EE, Catalyst and PHP), so I find it very useful. > And I'm already working to integrate some dancer examples in existing perl > courses I teach. > I'm glad to hear. The next meeting's surprise lightning talk *might* just include Dancer. :) > Multiple // are a pain for me on deployment configuration. I'm using > Apache2 with mod_proxy (like in the cookbook), and for some reason the proxy > adds a / (so all urls begin with a double /). > > Hopefully, I'll have some time when this project is done and try to help > you guys solve this issue on Dancer. > I've checked on the RFC and apparently it allows double slashes (and I assume more) as an alternative path, meaning the application is *not* allowed to remove them, or it breaks the RFC. Theoretically you should be able to have http://myapp/hello go to a different place than http://myapp//hello. Tricky, I agree! So, we won't break the RFC. Instead, I thought about writing a Middleware (which are easily integrated in Dancer) that does it for you. You'll have to add a line or two to the configuration and install it. Other than that, you'll be home free. How does that sound? Sawyer.
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
