Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen293 committed Jul 6, 2023
1 parent 80e3500 commit ecbd035
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/com/easypost/http/Requestor.java
Original file line number Diff line number Diff line change
Expand Up @@ -591,16 +591,6 @@ private static <T> T httpRequest(final RequestMethod method, final String url, f
handleAPIError(rBody, rCode);
}

HashMap<String, Object> responseBodyForHook = new HashMap<String, Object>();
responseBodyForHook.put("http_status", rCode);
responseBodyForHook.put("headers", headers);
responseBodyForHook.put("method", method.toString());
responseBodyForHook.put("path", url);
responseBodyForHook.put("response_body", rBody);
responseBodyForHook.put("response_timestamp", Instant.now());
responseBodyForHook.put("request_timestamp", requestTimestamp);
responseBodyForHook.put("request_uuid", requestUuid);

ResponseHookResponses responseHookResponses = new ResponseHookResponses(rCode, headers, method.toString(), url,
rBody, Instant.now().toString(), requestTimestamp.toString(), requestUuid.toString());

Expand Down

0 comments on commit ecbd035

Please sign in to comment.