Skip to content

Commit 753248a

Browse files
committed
Changes return format
1 parent 9143c6c commit 753248a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/io/appsfly/core/AppInstance.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ public JSONObject execSync(final String intent, final JSONObject intentData, fin
109109
String responseChecksum = response.headers().get("X-Checksum");
110110
if(responseChecksum!=null){
111111
byte[] bytes = response.body().bytes();
112-
String data = response.body().string();
113-
System.out.println(data);
114112
boolean verified = CtyptoUtil.getInstance().verifychecksum(bytes, responseChecksum, config.secretKey);
115113
if (verified){
116-
return new JSONObject(data);
114+
return new JSONObject(new String(bytes));
117115
}
118116
else{
119117
throw new AppsflyException("Checksum Validation Failed");

0 commit comments

Comments
 (0)