* Rack::Static severly broken in 1.4.0
@ 2012-01-03 8:48 Erik Johansson
2012-01-03 14:59 ` James Tucker
0 siblings, 1 reply; 2+ messages in thread
From: Erik Johansson @ 2012-01-03 8:48 UTC (permalink / raw)
To: rack-devel
[-- Attachment #1: Type: text/plain, Size: 509 bytes --]
I'm all for new features, but the backwards breaking change in Rack::Static
goes beyond me.
use Rack::Static, :urls => ['/css/', '/graphics/', '/js/'], :root =>
"public"
That line has been sitting in my dev environment for the last year, working
like a charm, upgraded Rack and bam, now all requests are looking for
index.html.
To me it makes absolutely no sense that '/' is mapped to index.html by
default, it should only be relevant if you've specified :index.
Why is index.html the default setting?
[-- Attachment #2: Type: text/html, Size: 531 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Rack::Static severly broken in 1.4.0
2012-01-03 8:48 Rack::Static severly broken in 1.4.0 Erik Johansson
@ 2012-01-03 14:59 ` James Tucker
0 siblings, 0 replies; 2+ messages in thread
From: James Tucker @ 2012-01-03 14:59 UTC (permalink / raw)
To: rack-devel
That's a fair question, please file a bug and I will get to it when I have some more time.
On Jan 3, 2012, at 4:48 AM, Erik Johansson wrote:
> I'm all for new features, but the backwards breaking change in Rack::Static goes beyond me.
>
> use Rack::Static, :urls => ['/css/', '/graphics/', '/js/'], :root => "public"
> That line has been sitting in my dev environment for the last year, working like a charm, upgraded Rack and bam, now all requests are looking for index.html.
>
> To me it makes absolutely no sense that '/' is mapped to index.html by default, it should only be relevant if you've specified :index.
> Why is index.html the default setting?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-03 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-03 8:48 Rack::Static severly broken in 1.4.0 Erik Johansson
2012-01-03 14:59 ` James Tucker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).