lib/wordnik/request.rb in wordnik-4.06.11 vs lib/wordnik/request.rb in wordnik-4.06.12
- old
+ new
@@ -148,10 +148,10 @@
request.proxy = Wordnik.configuration.proxy
request.proxy_username = Wordnik.configuration.proxy_username if Wordnik.configuration.proxy_username.present?
request.proxy_password = Wordnik.configuration.proxy_password if Wordnik.configuration.proxy_password.present?
end
- Wordnik.logger.debug "\n #{self.http_method.upcase} #{self.url}\n body: #{self.outgoing_body}\n headers: #{request.headers}\n\n"
+ Wordnik.logger.debug "\n #{self.http_method.to_s.upcase} #{self.url}\n body: #{self.outgoing_body}\n headers: #{request.headers}\n\n"
request.body = self.outgoing_body unless self.http_method.to_sym == :get
# Execute the request
Typhoeus::Hydra.hydra.queue request