lib/pupa/processor.rb in pupa-0.0.12 vs lib/pupa/processor.rb in pupa-0.0.13
- old
+ new
@@ -44,21 +44,9 @@
#
# @param [String] url a URL to an HTML document
# @param [String,Hash] params query string parameters
# @return a parsed document
def get(url, params = {})
- # Faraday requires `params` to be a hash.
- if String === params
- params = CGI.parse(params)
-
- # Flatten the parameters for Faraday.
- params.each do |key,value|
- if Array === value && value.size == 1
- params[key] = value.first
- end
- end
- end
-
client.get(url, params).body
end
# Retrieves and parses a document with a POST request.
#