Skip to content

Commit

Permalink
Fix for #1638 (#1673)
Browse files Browse the repository at this point in the history
closes #1638
  • Loading branch information
zeljko-mirovic committed Apr 9, 2021
1 parent 6dce368 commit 88156ed
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.actuate.endpoint.http.ActuatorMediaType;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
Expand Down Expand Up @@ -141,7 +140,7 @@ private static ClientResponse convertLegacyResponse(LegacyEndpointConverter conv
return response.mutate().headers((headers) -> {
headers.replace(HttpHeaders.CONTENT_TYPE, singletonList(ActuatorMediaType.V2_JSON));
headers.remove(HttpHeaders.CONTENT_LENGTH);
}).body(response.bodyToFlux(DataBuffer.class).transform(converter::convert)).build();
}).body(converter::convert).build();
}

public static InstanceExchangeFilterFunction setDefaultAcceptHeader() {
Expand Down

0 comments on commit 88156ed

Please sign in to comment.