lib/active_merchant/connection.rb in activemerchant-1.126.0 vs lib/active_merchant/connection.rb in activemerchant-1.129.0
- old
+ new
@@ -83,11 +83,9 @@
info "connection_ssl_version=#{ssl_connection[:version]} connection_ssl_cipher=#{ssl_connection[:cipher]}", tag
result =
case method
when :get
- raise ArgumentError, 'GET requests do not support a request body' if body
-
http.get(endpoint.request_uri, headers)
when :post
debug body
http.post(endpoint.request_uri, body, RUBY_184_POST_HEADERS.merge(headers))
when :put