lib/open311/client/request.rb in open311-0.1.2 vs lib/open311/client/request.rb in open311-0.2.0
- old
+ new
@@ -20,14 +20,14 @@
private
def request(method, path, options, raw)
response = connection(raw).send(method) do |request|
case method
- when :get, :delete
- request.url(formatted_path(path), options)
- when :post, :put
- request.path = formatted_path(path)
- request.body = options unless options.empty?
+ when :get, :delete
+ request.url(formatted_path(path), options)
+ when :post, :put
+ request.path = formatted_path(path)
+ request.body = options unless options.empty?
end
end
raw ? response : response.body
end