Skip to content

Commit

Permalink
made the options optional on the quick request methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Oct 28, 2009
1 parent 71f005f commit 887257b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/typhoeus/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 887257b

Please sign in to comment.