File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/io/appsfly/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ public void onFailure(Call call, IOException e) {
6060 public void onResponse (Call call , final okhttp3 .Response response ) throws IOException {
6161 String checksum = response .headers ().get ("X-Checksum" );
6262 if (checksum !=null ){
63- boolean verified = CtyptoUtil .getInstance ().verifychecksum (response .body ().bytes (), checksum , config .secretKey );
63+ byte [] bytes = response .body ().bytes ();
64+ boolean verified = CtyptoUtil .getInstance ().verifychecksum (bytes , checksum , config .secretKey );
6465 if (verified ){
65- callback .onResponse (new JSONObject (response . body (). bytes () ));
66+ callback .onResponse (new JSONObject (bytes ));
6667 }
6768 else {
6869 callback .onError (new JSONObject (){{
You can’t perform that action at this time.
0 commit comments