Skip to content

Commit

Permalink
fixed HTTP.delete which was making a put request, thx @androbtech
Browse files Browse the repository at this point in the history
  • Loading branch information
mattetti committed May 5, 2012
1 parent 0eb225d commit 36d856f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http.rb
Expand Up @@ -40,7 +40,7 @@ def self.put(url, options={}, &block)
# Make a DELETE request
def self.delete(url, options={}, &block)
delegator = block_given? ? block : options.delete(:action)
HTTP::Query.new( url, :put, options.merge({:action => delegator}) )
HTTP::Query.new( url, :delete, options.merge({:action => delegator}) )
end

# Make a HEAD request
Expand Down

0 comments on commit 36d856f

Please sign in to comment.