Hey!

On Sun, Feb 20, 2011 at 9:16 AM, sawyer x <xsawy...@gmail.com> wrote:

>
> 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.
>

Update: it now exists!

Give it some time to propagate, but there's already
Plack::Middleware::NoMultipleSlashes on its way to CPAN.

To enable it in Dancer, all you have to do is edit the config.yml and add
this:
plack_middlewares:
    - [ NoMultipleSlashes ]

That's it! :)

Sawyer.
_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to