Sha256: b7955e47a7f5f47885a05d3da2d36fd8e69782b05c1871a5db10e1d6750e5de2
Contents?: true
Size: 334 Bytes
Versions: 2
Compression:
Stored size: 334 Bytes
Contents
require "uri" module Lanyon module Backports # :nodoc: class Router # Backport for Rack 1.x module UnescapePath def unescape_path(path) URI::Parser.new.unescape(path) end end end end Router.prepend Backports::Router::UnescapePath if Rack.release.start_with?("1.") end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lanyon-0.4.0 | lib/lanyon/backports.rb |
lanyon-0.3.4 | lib/lanyon/backports.rb |