From 9f856c1aec97f01168fbc0ebccc8f19792f6f79f Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sun, 16 Sep 2012 10:45:11 +0200 Subject: [PATCH] bugfixing --- lib/browser.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/browser.rb b/lib/browser.rb index 0b3e1f29..3b358fe5 100644 --- a/lib/browser.rb +++ b/lib/browser.rb @@ -140,22 +140,11 @@ class Browser def forge_request(url, params = {}) Typhoeus::Request.new( - replace_variables_in_url(url), + url.to_s, merge_request_params(params) ) end - # return string - def replace_variables_in_url(url) - @variables_to_replace_in_url ||= {} - - @variables_to_replace_in_url.each do |subject, replacement| - url.gsub!(subject, replacement) - end - url - end - protected :replace_variables_in_url - def merge_request_params(params = {}) if @proxy params = params.merge(:proxy => @proxy)