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.
2 parents b99f451 + b57f50b commit 6f16f79Copy full SHA for 6f16f79
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