semrush 3.0.8 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/semrush/report.rb +2 -2
- data/lib/semrush/version.rb +1 -1
- metadata +1 -1
data/lib/semrush/report.rb
CHANGED
@@ -233,13 +233,13 @@ module Semrush
|
|
233
233
|
}
|
234
234
|
puts "[Semrush query] URL: #{temp_url}" if Semrush.debug
|
235
235
|
url = URI.parse(temp_url)
|
236
|
-
Semrush.before.call(params)
|
236
|
+
Semrush.before.call(params.merge(:url => url))
|
237
237
|
response = Net::HTTP.start(url.host, url.port) {|http|
|
238
238
|
http.get(url.path+"?"+url.query)
|
239
239
|
}.body rescue "ERROR :: RESPONSE ERROR (-1)" # Make this error up
|
240
240
|
response.force_encoding("utf-8")
|
241
241
|
output = response.starts_with?("ERROR") ? error(response) : parse(response)
|
242
|
-
Semrush.after.call(params, output)
|
242
|
+
Semrush.after.call(params.merge(:url => url), output)
|
243
243
|
output
|
244
244
|
end
|
245
245
|
|
data/lib/semrush/version.rb
CHANGED