padrino/padrino-framework — Issue #773: Request.script_name is not set properly when ENV['RACK_BASE_URI'] is used
Author: yasuyuki
Created: 2012-01-31 00:48:15+00:00
State: open

Starting Padrino with environment value "ENV['RACK_BASE_URI']",

% export RACK_BASE_URI=/nonroot; padrino start

then, I get request uri from Rack::request instance,

> request.fullpath

but it doesn't return correct value because request.script_name is not set.
request.script_name should be set as ENV['RACK_BASE_URI'] value.

This breaks some library such as will_pagenate.