Skip to content

Commit 579c48e

Browse files
committed
fix issue
1 parent 1eee108 commit 579c48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/imagekitio/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def request(method, url, headers = create_headers, payload = nil)
3636
headers ||= create_headers
3737
response = {}
3838
begin
39-
if(method.downcase.to_sym == :post)
39+
if(method.downcase.to_sym == :post && payload.is_a?(Hash) && payload[:multipart])
4040
uri = URI.parse(url)
4141
http = Net::HTTP.new(uri.host, uri.port)
4242
http.use_ssl = (uri.scheme == 'https')

0 commit comments

Comments
 (0)