Skip to content
This repository
Browse code

fix bug where proxying only works the first time

  • Loading branch information...
commit b57f50b26dbe6498ef5ee24d96a13ef10a3e9980 1 parent b99f451
authored January 25, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/rack/reverse_proxy.rb
2  lib/rack/reverse_proxy.rb
@@ -152,7 +152,7 @@ def match?(path)
152 152
     end
153 153
 
154 154
     def get_uri(path,env)
155  
-      _url=(url.respond_to?(:call) ? url.call(env) : url)
  155
+      _url=(url.respond_to?(:call) ? url.call(env) : url.clone)
156 156
       if _url =~/\$\d/
157 157
         match_path(path).to_a.each_with_index { |m, i| _url.gsub!("$#{i.to_s}", m) }
158 158
         URI(_url)

0 notes on commit b57f50b

Please sign in to comment.
Something went wrong with that request. Please try again.