diff --git a/lib/ey-core/client.rb b/lib/ey-core/client.rb index 087fa91..ad1aae3 100644 --- a/lib/ey-core/client.rb +++ b/lib/ey-core/client.rb @@ -453,6 +453,10 @@ def request(options={}) body = options[:body] headers = options[:headers] || {} + if (method != :get) && !params.empty? + raise "It's bad form to use URL query parameters with a non-GET request, please use :body" + end + default_content_type = if !body && !params.empty? "application/x-www-form-urlencoded" else