module Roda::RodaPlugins::StaticPathInfo::RequestMethods
def run(_)
before dispatching to another rack app, so the app still works as
Update SCRIPT_NAME/PATH_INFO based on the current remaining_path
def run(_) e = @env path = @remaining_path begin script_name = e[SCRIPT_NAME] path_info = e[PATH_INFO] e[SCRIPT_NAME] += path_info.chomp(path) e[PATH_INFO] = path super ensure e[SCRIPT_NAME] = script_name e[PATH_INFO] = path_info end end