Skip Menu |

This queue is for tickets about the HTTP-Server-Simple-Mason CPAN distribution.

Report information
The Basics
Id: 20134
Status: resolved
Priority: 0/
Queue: HTTP-Server-Simple-Mason

People
Owner: Nobody in particular
Requestors: fleury [...] users.sourceforge.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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
Hello, Fixed in the repository. Do you want to test the change and/or write a test? -- Best regards, Ruslan.