lib/open311/client/request.rb in open311-0.0.1 vs lib/open311/client/request.rb in open311-0.1.0
- old
+ new
@@ -24,10 +24,10 @@
case method
when :get, :delete
request.url(formatted_path(path), options)
when :post, :put
request.path = formatted_path(path)
- request.body = options
+ request.body = options unless options.empty?
end
end
raw ? response : response.body
end