hi, I just came across an app that uses 'REQUEST_PATH' instead of
'PATH_INFO'. Ordinarily (I guess if u dont use webrick?), I guess this
might not be a problem, but it seems like webrick always sets the
REQUEST_PATH as '/', whereas PATH_INFO varies, according to your
request. So I'm wondering - is it the fault of this app that it is
trying to rely on using REQUEST_PATH to determine the PATH? or is it
webrick's fault, and that somehow using we've all moved on, and using
REQUEST_PATH is ok, or even the recommended way? (The rack spec
http://rack.rubyforge.org/doc/SPEC.html only mentions PATH_INFO, btw,
so...)
I'm running rack 1.1.0, with webrick 1.3.1 from ruby 1.8.7. I'm
running a sinatra app, with 'rackup'.
thanks,
-jf
--
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."
--Richard Stallman
"It's so hard to write a graphics driver that open-sourcing it would not help."
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228