# File lib/rack/recursive.rb, line 48 48: def include(env, path) 49: unless path.index(@script_name) == 0 && (path[@script_name.size] == ?/ || 50: path[@script_name.size].nil?) 51: raise ArgumentError, "can only include below #{@script_name}, not #{path}" 52: end 53: 54: env = env.merge("PATH_INFO" => path, "SCRIPT_NAME" => @script_name, 55: "REQUEST_METHOD" => "GET", 56: "CONTENT_LENGTH" => "0", "CONTENT_TYPE" => "", 57: "rack.input" => StringIO.new("")) 58: @app.call(env) 59: end