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 1eee108 commit 579c48eCopy full SHA for 579c48e
lib/imagekitio/request.rb
@@ -36,7 +36,7 @@ def request(method, url, headers = create_headers, payload = nil)
36
headers ||= create_headers
37
response = {}
38
begin
39
- if(method.downcase.to_sym == :post)
+ if(method.downcase.to_sym == :post && payload.is_a?(Hash) && payload[:multipart])
40
uri = URI.parse(url)
41
http = Net::HTTP.new(uri.host, uri.port)
42
http.use_ssl = (uri.scheme == 'https')
0 commit comments