Skip to content

Commit

Permalink
[feat] check content type add
Browse files Browse the repository at this point in the history
  • Loading branch information
KWY0218 committed Jan 16, 2024
1 parent 8522b01 commit 629aae9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private String getCommunicationData(

sb.append(START_LOG);
sb.append(String.format("====> Request: %s %s ({%d}ms)\n====> *Header = {%s}\n", request.getMethod(), request.getRequestURL(), endAt - startAt, getHeaders(request)));
sb.append("=================> content type is ").append(request.getContentType()).append("\n");
if ("POST".equalsIgnoreCase(request.getMethod()) && request.getContentType() != null && request.getContentType().contains(MULTI_PART_FORM_DATA)) {
sb.append("====> Body: ");
cachingRequest.getParts().stream().map(Part::getName).forEach(n -> {
Expand Down

0 comments on commit 629aae9

Please sign in to comment.