Subject: | HTTP::Server::Simple::Mason issue with /index.html |
Date: | Tue, 27 Jun 2006 15:56:50 +0200 |
To: | bug-http-server-simple-mason [...] rt.cpan.org |
From: | Pascal Fleury <fleury [...] users.sourceforge.net> |
Hi!
I have used your nice class, and have faced the following small issue:
When the server is started, and a request for '/' comes in, then you
append '/index.html'. But this makes the $r->uri return '//index.html' as the
requested URL, and using this in other parts of the code breaks redirects
among other things (we then redirect to //index.html, which the browser takes
as an absolute URL, and ends in lala-land).
I fixed this in removing the leading '/' in both instances where you append
index.html, and it gives the proper URL.
Don't know if this introduces other bugs, but it fixes mine!
Have a nice day!
--pascal