Module: Roda::RodaPlugins::UnescapePath::RequestMethods

Defined in:
lib/roda/plugins/unescape_path.rb

Instance Method Summary collapse

Instance Method Details

#matched_pathObject

Make sure the matched path calculation handles the unescaping of the remaining path.



25
26
27
28
# File 'lib/roda/plugins/unescape_path.rb', line 25

def matched_path
  e = @env
  Rack::Utils.unescape(e["SCRIPT_NAME"] + e["PATH_INFO"]).chomp(@remaining_path)
end