From 24e27581484bf0dcab51e59381b42408cb198fb0 Mon Sep 17 00:00:00 2001 From: Gaurav2602 Date: Wed, 22 Sep 2021 22:32:06 +0530 Subject: [PATCH] Update ApiMethod.java instead of code , i think it should be returnCode. --- src/main/java/edu/tongji/wang/chefapi/method/ApiMethod.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/tongji/wang/chefapi/method/ApiMethod.java b/src/main/java/edu/tongji/wang/chefapi/method/ApiMethod.java index dc8a0bc..d2f0324 100644 --- a/src/main/java/edu/tongji/wang/chefapi/method/ApiMethod.java +++ b/src/main/java/edu/tongji/wang/chefapi/method/ApiMethod.java @@ -60,9 +60,9 @@ public ApiMethod execute(){ method.addRequestHeader("X-Ops-Authorization-" + (i + 1), auth_headers[i]); } - int code = 0; + returnCode = 0; try { - code = client.executeMethod(method); + returnCode = client.executeMethod(method); } catch (HttpException e) { e.printStackTrace(); } catch (IOException e) {