Skip to content

Commit d5c508c

Browse files
Missing result="stResponse"
Added result="stResponse" to delete() and getinfo()
1 parent d6f4ebe commit d5c508c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/lib/cloudinary.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
<cfset sigSignature = lcase( hash( "public_id=#publicID#&timestamp=#sigTimestamp##apiSecret#" ,"SHA" ) )>
387387

388388
<!--- DELETE FROM CLOUDINARY --->
389-
<cfhttp url="https://api.cloudinary.com/v1_1/#cloudName#/resources/image/upload?public_ids=#publicID#" method="DELETE" username="#apiKey#" password="#apiSecret#">
389+
<cfhttp url="https://api.cloudinary.com/v1_1/#cloudName#/resources/image/upload?public_ids=#publicID#" method="DELETE" username="#apiKey#" password="#apiSecret#" result="stResponse">
390390

391391
<cfif isjson(stResponse.filecontent)>
392392
<cfset stResult = deserializejson(stResponse.filecontent)>
@@ -416,7 +416,7 @@
416416
<cfthrow message="Source has not been migrated to Cloudinary">
417417
</cfif>
418418

419-
<cfhttp url="https://api.cloudinary.com/v1_1/#cloudName#/resources/image/upload/#publicID#" username="#apiKey#" password="#apiSecret#">
419+
<cfhttp url="https://api.cloudinary.com/v1_1/#cloudName#/resources/image/upload/#publicID#" username="#apiKey#" password="#apiSecret#" result="stResponse">
420420

421421
<cfif isjson(stResponse.filecontent)>
422422
<cfset stResult = deserializejson(stResponse.filecontent)>
@@ -435,4 +435,4 @@
435435
<cfreturn stResult>
436436
</cffunction>
437437

438-
</cfcomponent>
438+
</cfcomponent>

0 commit comments

Comments
 (0)