Skip to content

Commit

Permalink
issue #160 (#161)
Browse files Browse the repository at this point in the history
- now will use existed audit info map
  • Loading branch information
BalloonWen authored Dec 22, 2020
1 parent 85a2961 commit f49f87e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ public void handleRequest(final HttpServerExchange exchange) throws Exception {
}

String endpoint = openApiPathString.normalised() + "@" + httpMethod.toString().toLowerCase();
Map<String, Object> auditInfo = new HashMap<>();
Map<String, Object> auditInfo = exchange.getAttachment(AttachmentConstants.AUDIT_INFO) == null
? new HashMap<>()
: exchange.getAttachment(AttachmentConstants.AUDIT_INFO);
auditInfo.put(Constants.ENDPOINT_STRING, endpoint);
auditInfo.put(Constants.OPENAPI_OPERATION_STRING, openApiOperation);
exchange.putAttachment(AttachmentConstants.AUDIT_INFO, auditInfo);
Expand Down

0 comments on commit f49f87e

Please sign in to comment.