Skip to content

Commit 152cf24

Browse files
authored
Merge pull request #22 from violetviolinist/breaking-bug-fix
Fixed Upload image not working
2 parents dd73893 + 57a7c07 commit 152cf24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/imagekit/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def request(method, url, headers = nil, payload = nil)
3939
payload: payload).execute
4040

4141
if (resp.code >= 200) && (resp.code < 204)
42-
if (resp.headers[:content_type] == "application/json")
42+
if (resp.headers[:content_type].include? "application/json")
4343
response[:response] = JSON.parse(resp.body.to_s)
4444
else
4545
raise =RestClient::ExceptionWithResponse

lib/imagekit/sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Imagekit
22
module Sdk
3-
VERSION = '1.0.7'
3+
VERSION = '1.0.8'
44
end
55
end

0 commit comments

Comments
 (0)