bump spring-web to 6.2.12 and fix compatibility with new api by a-simeshin · Pull Request #1161 · allure-framework/allure-java
Expand Up
@@ -81,7 +81,7 @@ public ClientHttpResponse intercept(@NonNull final HttpRequest request, final by
final HttpRequestAttachment.Builder requestAttachmentBuilder = HttpRequestAttachment.Builder .create("Request", request.getURI().toString()) .setMethod(request.getMethodValue()) .setMethod(request.getMethod().name()) .setHeaders(toMapConverter(request.getHeaders())); if (body.length != 0) { requestAttachmentBuilder.setBody(new String(body, StandardCharsets.UTF_8)); Expand All @@ -94,7 +94,7 @@ public ClientHttpResponse intercept(@NonNull final HttpRequest request, final by
final HttpResponseAttachment responseAttachment = HttpResponseAttachment.Builder .create("Response") .setResponseCode(clientHttpResponse.getRawStatusCode()) .setResponseCode(clientHttpResponse.getStatusCode().value()) .setHeaders(toMapConverter(clientHttpResponse.getHeaders())) .setBody(StreamUtils.copyToString(clientHttpResponse.getBody(), StandardCharsets.UTF_8)) .build(); Expand Down
final HttpRequestAttachment.Builder requestAttachmentBuilder = HttpRequestAttachment.Builder .create("Request", request.getURI().toString()) .setMethod(request.getMethodValue()) .setMethod(request.getMethod().name()) .setHeaders(toMapConverter(request.getHeaders())); if (body.length != 0) { requestAttachmentBuilder.setBody(new String(body, StandardCharsets.UTF_8)); Expand All @@ -94,7 +94,7 @@ public ClientHttpResponse intercept(@NonNull final HttpRequest request, final by
final HttpResponseAttachment responseAttachment = HttpResponseAttachment.Builder .create("Response") .setResponseCode(clientHttpResponse.getRawStatusCode()) .setResponseCode(clientHttpResponse.getStatusCode().value()) .setHeaders(toMapConverter(clientHttpResponse.getHeaders())) .setBody(StreamUtils.copyToString(clientHttpResponse.getBody(), StandardCharsets.UTF_8)) .build(); Expand Down