lib/passworks/request.rb in passworks-2.0.6 vs lib/passworks/request.rb in passworks-2.0.7
- old
+ new
@@ -2,12 +2,12 @@
module Request
def request(method, path, options={})
response = agent.send(method) do |request|
case method
- when :get, :delete
+ when :get
request.url(path, options[:query])
- when :post, :put, :patch
+ when :post, :put, :patch, :delete
request.path = path
request.body = options.fetch(:body, {})
end
end
Response.new(self, response)
\ No newline at end of file