dragon-zhang commented on issue #3391:
URL:
https://github.com/apache/incubator-shenyu/issues/3391#issuecomment-1120141796
```java
default MediaType contentType(ServerWebExchange exchange, Object
formatted) {
//fixme not compatible with NettyHttpClientPlugin
final ClientResponse clientResponse =
exchange.getAttribute(Constants.CLIENT_RESPONSE_ATTR);
if (Objects.nonNull(clientResponse) &&
clientResponse.headers().contentType().isPresent()) {
return clientResponse.headers().contentType().get();
}
return MediaType.APPLICATION_JSON;
}
```
Is anyone willing to fix it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]