Permalink
Browse files

fixed HTTP.delete which was making a put request, thx @androbtech

  • Loading branch information...
1 parent 0eb225d commit 36d856f1727b73f20ac4db5c305c0d9fa9c2c2e3 @mattetti committed May 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http.rb
View
@@ -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

0 comments on commit 36d856f

Please sign in to comment.