summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Zhe <tech@weizheheng.com>2022-12-26 19:48:01 +0800
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-12-27 09:00:12 +1300
commitac892ab84dbac20729fcc96da8fcdb5eb4aa7bb9 (patch)
treef235d7503c03cdf4cc42d716f325e4408a1af37e
parentabca7d59c566320f1b60d1f5224beac9d201fa3b (diff)
downloadrack-ac892ab84dbac20729fcc96da8fcdb5eb4aa7bb9.tar.gz
Fix Regexp deprecated third argument with Regexp::NOENCODING (#1998)
-rw-r--r--lib/rack/urlmap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/urlmap.rb b/lib/rack/urlmap.rb
index 31a642c4..8462f920 100644
--- a/lib/rack/urlmap.rb
+++ b/lib/rack/urlmap.rb
@@ -35,7 +35,7 @@ module Rack
end
location = location.chomp('/')
- match = Regexp.new("^#{Regexp.quote(location).gsub('/', '/+')}(.*)", nil, 'n')
+ match = Regexp.new("^#{Regexp.quote(location).gsub('/', '/+')}(.*)", Regexp::NOENCODING)
[host, location, match, app]
}.sort_by do |(host, location, _, _)|