Merge pull request #858 from parkr/rack-unescape-urls

Rack should unescape URLs (support for non-ascii URLs)
This commit is contained in:
Parker Moore 2012-12-16 18:42:11 -08:00
commit 1d737a45c8

View File

@ -7,7 +7,7 @@ $root = ::File.dirname(__FILE__)
class SinatraStaticServer < Sinatra::Base class SinatraStaticServer < Sinatra::Base
get(/.+/) do get(/.+/) do
send_sinatra_file(request.path) {404} send_sinatra_file(unescape request.path) {404}
end end
not_found do not_found do