We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99f451 commit b57f50bCopy full SHA for b57f50b
lib/rack/reverse_proxy.rb
@@ -152,7 +152,7 @@ def match?(path)
152
end
153
154
def get_uri(path,env)
155
- _url=(url.respond_to?(:call) ? url.call(env) : url)
+ _url=(url.respond_to?(:call) ? url.call(env) : url.clone)
156
if _url =~/\$\d/
157
match_path(path).to_a.each_with_index { |m, i| _url.gsub!("$#{i.to_s}", m) }
158
URI(_url)
0 commit comments