Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

made the options optional on the quick request methods

  • Loading branch information...
commit 887257bf874b1f3166f4158a316c56f5cfbdee89 1 parent 71f005f
@pauldix pauldix authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/typhoeus/request.rb
View
8 lib/typhoeus/request.rb
@@ -92,19 +92,19 @@ def self.run(url, params)
r.response
end
- def self.get(url, params)
+ def self.get(url, params = {})
run(url, params.merge(:method => :get))
end
- def self.post(url, params)
+ def self.post(url, params = {})
run(url, params.merge(:method => :post))
end
- def self.put(url, params)
+ def self.put(url, params = {})
run(url, params.merge(:method => :put))
end
- def self.delete(url, params)
+ def self.delete(url, params = {})
run(url, params.merge(:method => :delete))
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.