We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f392bc commit bba8fb1Copy full SHA for bba8fb1
lib/ey-core/client.rb
@@ -453,6 +453,10 @@ def request(options={})
453
body = options[:body]
454
headers = options[:headers] || {}
455
456
+ if (method != :get) && !params.empty?
457
+ raise "It's bad form to use URL query parameters with a non-GET request, please use :body"
458
+ end
459
+
460
default_content_type = if !body && !params.empty?
461
"application/x-www-form-urlencoded"
462
else
0 commit comments